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

View file

@ -141,6 +141,7 @@ class Item(db.Model):
for key in self.array_keys: for key in self.array_keys:
if key in j and not isinstance(j[key], list): if key in j and not isinstance(j[key], list):
j[key] = [j[key]] j[key] = [j[key]]
j['sharemetadata'] = j.get('sharemetadata', False)
return j return j
def get_path(self): def get_path(self):