From e08ea78ef42243ab35bceb059033839b701ec6e7 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 16 Mar 2021 17:09:54 +0000 Subject: Removed unnecessary decoding when getting user_id from UserSession --- wqflask/wqflask/user_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') 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): -- cgit v1.2.3