aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-06-15 17:51:15 +0000
committerzsloan2021-06-15 17:51:15 +0000
commitf4ad7bc3ebfa9be6ff98c9f935a9e8576974ddd6 (patch)
tree26cc21f8404736df266cce5d3e4479a781a7a180 /wqflask
parent9e9e0e4d440383f617542e810a1115833eafd7bf (diff)
downloadgenenetwork2-f4ad7bc3ebfa9be6ff98c9f935a9e8576974ddd6.tar.gz
Fix issue where column values were used as str instead of bytes; pretty sure this was introduced by Python3
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/utility/redis_tools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py
index 96a4be12..ff125bd2 100644
--- a/wqflask/utility/redis_tools.py
+++ b/wqflask/utility/redis_tools.py
@@ -26,6 +26,8 @@ def is_redis_available():
def load_json_from_redis(item_list, column_value):
+ if type(column_value) == str:
+ column_value = str.encode(column_value)
return json.loads(item_list[column_value])