sharemetadata should never be ''
This commit is contained in:
parent
2345fc885d
commit
ec81b80d2e
2 changed files with 2 additions and 1 deletions
|
@ -161,6 +161,8 @@ class Item(db.Model):
|
|||
j[key] = [j[key]]
|
||||
if keys is None or 'sharemetadata' in keys:
|
||||
j['sharemetadata'] = j.get('sharemetadata', False)
|
||||
if not j['sharemetadata']:
|
||||
j['sharemetadata'] = False
|
||||
return j
|
||||
|
||||
def get_path(self):
|
||||
|
|
|
@ -329,7 +329,6 @@ def sortUsers(data):
|
|||
}
|
||||
'''
|
||||
n = 0
|
||||
logger.debug('sortUsers %s', data)
|
||||
for id in data['ids']:
|
||||
u = models.User.get(id)
|
||||
u.info['index'] = n
|
||||
|
|
Loading…
Reference in a new issue