diff options
author | zsloan | 2021-03-16 17:25:14 +0000 |
---|---|---|
committer | zsloan | 2021-03-16 17:25:14 +0000 |
commit | 696585dda43ec238940b2e1cc239028e31684dc3 (patch) | |
tree | 935c808b983242974c081b834579991c94435449 | |
parent | 02b14ccc55978742cd115f3c80bf8ef41ac77ae7 (diff) | |
download | genenetwork2-696585dda43ec238940b2e1cc239028e31684dc3.tar.gz |
Fixed encoding in load_json_from_redis to account for the first that column values are sometimes stored as bytes and sometimes as strings
-rw-r--r-- | wqflask/utility/redis_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py index d05de923..8052035f 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[column_value]) def get_user_id(column_name, column_value): |