aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/model.py
diff options
context:
space:
mode:
authorLei Yan2015-07-23 16:37:32 +0000
committerLei Yan2015-07-23 16:37:32 +0000
commite98da1982924e80429ec8dccad8b464c8fa87e17 (patch)
tree6573bb2c6150e6f3f3ad851491776d45b266b135 /wqflask/wqflask/model.py
parentb32f4a01c339bf29556b1ac933afdff8236cd19d (diff)
parentc053ff453e6c8354e61b227d028378712ab240d6 (diff)
downloadgenenetwork2-e98da1982924e80429ec8dccad8b464c8fa87e17.tar.gz
Merge /home/zas1024/gene
Diffstat (limited to 'wqflask/wqflask/model.py')
-rwxr-xr-xwqflask/wqflask/model.py7
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):