aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/model.py
diff options
context:
space:
mode:
authorzsloan2016-08-11 20:25:47 +0000
committerzsloan2016-08-11 20:25:47 +0000
commit76a5fba80bba30df35fb0cee4ceb414312a1ea5a (patch)
treeef6a72af92f7f086a0e9952fc73e60ce235014ee /wqflask/wqflask/model.py
parentb37f5cc857849a29ea13825b96fbb8ea7c24a807 (diff)
downloadgenenetwork2-76a5fba80bba30df35fb0cee4ceb414312a1ea5a.tar.gz
Added prompt when user logs in that lets them choose to import existing anonymous collections as user collections
Diffstat (limited to 'wqflask/wqflask/model.py')
-rw-r--r--wqflask/wqflask/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/model.py b/wqflask/wqflask/model.py
index 3b480e0c..17343186 100644
--- a/wqflask/wqflask/model.py
+++ b/wqflask/wqflask/model.py
@@ -83,7 +83,7 @@ class User(Base):
def get_collection_by_name(self, collection_name):
try:
- collect = self.user_collections.filter_by(name=collection_name).one()
+ collect = self.user_collections.filter_by(name=collection_name).first()
except sqlalchemy.orm.exc.NoResultFound:
collect = None
return collect