dont always return sharemetadata key
This commit is contained in:
parent
ba28d78280
commit
ed8e71e5c6
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ class Item(db.Model):
|
|||
for key in self.array_keys:
|
||||
if key in j and not isinstance(j[key], list):
|
||||
j[key] = [j[key]]
|
||||
j['sharemetadata'] = j.get('sharemetadata', False)
|
||||
if keys is None or 'sharemetadata' in keys:
|
||||
j['sharemetadata'] = j.get('sharemetadata', False)
|
||||
return j
|
||||
|
||||
def get_path(self):
|
||||
|
|
Loading…
Reference in a new issue