always return true or false for sharemetadata

This commit is contained in:
j 2016-01-19 16:49:30 +05:30
parent 03e2c068ca
commit b2c3d9f47b
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ 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)
return j
def get_path(self):