From ec81b80d2ed3bbee9c357f25c3a91acfb582aaa9 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 26 Feb 2016 18:36:00 +0530 Subject: [PATCH] sharemetadata should never be '' --- oml/item/models.py | 2 ++ oml/user/api.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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