aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-02-18 18:38:49 +0000
committerzsloan2021-02-18 18:38:49 +0000
commit6d568e2cc0b09c33b0f5feb5d8e0d1a2370a79cf (patch)
treea7983205290f607c36aa052f8dd68c9f442ef0dc /wqflask
parentcafdd7284f3c2f87e1dbb288e181f1e5aeeccc06 (diff)
downloadgenenetwork2-6d568e2cc0b09c33b0f5feb5d8e0d1a2370a79cf.tar.gz
Convert user ID to string
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/user_session.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wqflask/wqflask/user_session.py b/wqflask/wqflask/user_session.py
index 9f4c5458..ea4651e7 100644
--- a/wqflask/wqflask/user_session.py
+++ b/wqflask/wqflask/user_session.py
@@ -121,7 +121,6 @@ class UserSession(object):
if Redis.ttl(self.redis_key) < session_time:
# (Almost) everytime the user does something we extend the session_id in Redis...
- logger.debug("Extending ttl...")
Redis.expire(self.redis_key, session_time)
@property
@@ -130,7 +129,7 @@ class UserSession(object):
if b'user_id' not in self.record:
self.record[b'user_id'] = str(uuid.uuid4())
- return self.record[b'user_id']
+ return self.record[b'user_id'].decode("utf-8")
@property
def redis_user_id(self):