aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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])