From 935d618da8986ad85292836f0762e435deb37108 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 17 Feb 2021 19:24:57 +0000 Subject: Fixed error caused by user IDs being encoded as bytes --- wqflask/utility/redis_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py index 236cc755..f72d9110 100644 --- a/wqflask/utility/redis_tools.py +++ b/wqflask/utility/redis_tools.py @@ -26,7 +26,7 @@ def is_redis_available(): def load_json_from_redis(item_list, column_value): - return json.loads(item_list[str.encode(column_value)]) + return json.loads(item_list[str.encode(column_value.decode("utf-8"))]) def get_user_id(column_name, column_value): -- cgit v1.2.3