diff options
author | zsloan | 2021-06-15 17:51:15 +0000 |
---|---|---|
committer | zsloan | 2021-06-15 17:51:15 +0000 |
commit | f4ad7bc3ebfa9be6ff98c9f935a9e8576974ddd6 (patch) | |
tree | 26cc21f8404736df266cce5d3e4479a781a7a180 | |
parent | 9e9e0e4d440383f617542e810a1115833eafd7bf (diff) | |
download | genenetwork2-f4ad7bc3ebfa9be6ff98c9f935a9e8576974ddd6.tar.gz |
Fix issue where column values were used as str instead of bytes; pretty sure this was introduced by Python3
-rw-r--r-- | wqflask/utility/redis_tools.py | 2 |
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]) |