diff options
author | BonfaceKilz | 2020-09-30 16:55:25 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-09-30 16:55:25 +0300 |
commit | dce0cd8725e68e6984c8b54a2cc108e4f8c9df7a (patch) | |
tree | b5d8482505cafff02496c1e28c8ae6f68ff63abe | |
parent | 475b6e333e6356103592b0983d5efb8e84eb73e7 (diff) | |
download | genenetwork2-dce0cd8725e68e6984c8b54a2cc108e4f8c9df7a.tar.gz |
Fix StopIteration error thrown in view collections page
* wqflask/wqflask/user_session.py (user_id): Use byte-string when
fetching user_id. See:
https://github.com/genenetwork/genenetwork2/pull/422#issuecomment-701082458
-rw-r--r-- | wqflask/wqflask/user_session.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/user_session.py b/wqflask/wqflask/user_session.py index c1f38396..9f4c5458 100644 --- a/wqflask/wqflask/user_session.py +++ b/wqflask/wqflask/user_session.py @@ -127,10 +127,10 @@ class UserSession(object): @property def user_id(self): """Shortcut to the user_id""" - if 'user_id' not in self.record: - self.record['user_id'] = str(uuid.uuid4()) + if b'user_id' not in self.record: + self.record[b'user_id'] = str(uuid.uuid4()) - return self.record['user_id'] + return self.record[b'user_id'] @property def redis_user_id(self): |