From af4dc32a41f242226608cfe69a294abdcbc0f07a Mon Sep 17 00:00:00 2001 From: tral909 Date: Sat, 18 Apr 2020 17:15:59 +0300 Subject: [PATCH] Fix symbol b in client representation (redis return binary values) --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 1fc4ec3..6818db8 100644 --- a/app.py +++ b/app.py @@ -1,8 +1,8 @@ from flask import Flask -from redis import Redis +from redis import StrictRedis app = Flask(__name__) -redis = Redis(host='redis', port=6379) +redis = StrictRedis(host='redis', port=6379, encoding='utf-8', decode_responses=True) @app.route('/') def hello():