diff options
author | Lei Yan | 2015-07-23 16:37:32 +0000 |
---|---|---|
committer | Lei Yan | 2015-07-23 16:37:32 +0000 |
commit | e98da1982924e80429ec8dccad8b464c8fa87e17 (patch) | |
tree | 6573bb2c6150e6f3f3ad851491776d45b266b135 /wqflask/wqflask/model.py | |
parent | b32f4a01c339bf29556b1ac933afdff8236cd19d (diff) | |
parent | c053ff453e6c8354e61b227d028378712ab240d6 (diff) | |
download | genenetwork2-e98da1982924e80429ec8dccad8b464c8fa87e17.tar.gz |
Merge /home/zas1024/gene
Diffstat (limited to 'wqflask/wqflask/model.py')
-rwxr-xr-x | wqflask/wqflask/model.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wqflask/wqflask/model.py b/wqflask/wqflask/model.py index 042cb8df..5ea32e1f 100755 --- a/wqflask/wqflask/model.py +++ b/wqflask/wqflask/model.py @@ -172,8 +172,11 @@ class UserCollection(Base): @property def num_members(self): - print("members are:", json.loads(self.members)) - return len(json.loads(self.members)) + try: + return len(json.loads(self.members)) + except: + return 0 + #@property #def display_num_members(self): |