From f4ad7bc3ebfa9be6ff98c9f935a9e8576974ddd6 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 15 Jun 2021 17:51:15 +0000 Subject: Fix issue where column values were used as str instead of bytes; pretty sure this was introduced by Python3 --- wqflask/utility/redis_tools.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wqflask/utility') 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]) -- cgit v1.2.3