diff options
author | zsloan | 2016-08-11 20:25:47 +0000 |
---|---|---|
committer | zsloan | 2016-08-11 20:25:47 +0000 |
commit | 76a5fba80bba30df35fb0cee4ceb414312a1ea5a (patch) | |
tree | ef6a72af92f7f086a0e9952fc73e60ce235014ee /wqflask/wqflask/model.py | |
parent | b37f5cc857849a29ea13825b96fbb8ea7c24a807 (diff) | |
download | genenetwork2-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.py | 2 |
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 |