diff options
author | Zachary Sloan | 2014-02-27 00:01:11 +0000 |
---|---|---|
committer | Zachary Sloan | 2014-02-27 00:01:11 +0000 |
commit | dd6e828ca3b205fefcae833aec53139961f9575f (patch) | |
tree | cedc3363c8003b25a8407502d4e5efaf6ccae48e /wqflask/wqflask | |
parent | b1fd0e00050ef7ba95fd077fb78773265629fb1b (diff) | |
download | genenetwork2-dd6e828ca3b205fefcae833aec53139961f9575f.tar.gz |
Began working on a TraitCollection.py file that will contain both the
object for logged in user collections and collections created by
anonymous users.
Diffstat (limited to 'wqflask/wqflask')
-rw-r--r-- | wqflask/wqflask/collect.py | 2 | ||||
-rw-r--r-- | wqflask/wqflask/model.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py index 5a68c7c9..daa3b2af 100644 --- a/wqflask/wqflask/collect.py +++ b/wqflask/wqflask/collect.py @@ -237,7 +237,7 @@ def view_collection(): traits = json.loads(uc.members) else: anon_id = params['key'] - uc = model.AnonCollection + uc = model.AnonCollection(anon_id = anon_id) traits = Redis.smembers(anon_id) print("the traits are:", traits) diff --git a/wqflask/wqflask/model.py b/wqflask/wqflask/model.py index 71bda550..fa8c1aab 100644 --- a/wqflask/wqflask/model.py +++ b/wqflask/wqflask/model.py @@ -189,3 +189,9 @@ def display_collapsible(number): return number else: return "" + + +def user_uuid(): + """Unique cookie for a user""" + user_uuid = request.cookies.get('user_uuid') +
\ No newline at end of file |