diff --git a/oml/item/models.py b/oml/item/models.py index 4d52ac4..4225b66 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -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): diff --git a/oml/user/api.py b/oml/user/api.py index 0cf39aa..151ce25 100644 --- a/oml/user/api.py +++ b/oml/user/api.py @@ -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