aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-02-17 19:24:57 +0000
committerzsloan2021-02-17 19:24:57 +0000
commit935d618da8986ad85292836f0762e435deb37108 (patch)
tree4a2551d1caf164dba69f3cd547133f4e6a0d124e
parent35f1f86844f46d2633d899c4e9f6a56f3ddf0706 (diff)
downloadgenenetwork2-935d618da8986ad85292836f0762e435deb37108.tar.gz
Fixed error caused by user IDs being encoded as bytes
-rw-r--r--wqflask/utility/redis_tools.py2
1 files changed, 1 insertions, 1 deletions
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):