diff options
author | zsloan | 2021-03-16 17:09:54 +0000 |
---|---|---|
committer | zsloan | 2021-03-16 17:09:54 +0000 |
commit | e08ea78ef42243ab35bceb059033839b701ec6e7 (patch) | |
tree | 4a6f29388369b59af7bf61cdb9ab93fa04366e81 | |
parent | e523b3ee43ca86357bd983301c85f6a90f662b10 (diff) | |
download | genenetwork2-e08ea78ef42243ab35bceb059033839b701ec6e7.tar.gz |
Removed unnecessary decoding when getting user_id from UserSession
-rw-r--r-- | wqflask/wqflask/user_session.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/user_session.py b/wqflask/wqflask/user_session.py index ea4651e7..d6f3b3fc 100644 --- a/wqflask/wqflask/user_session.py +++ b/wqflask/wqflask/user_session.py @@ -129,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'].decode("utf-8") + return self.record[b'user_id'] @property def redis_user_id(self): |