diff --git a/Flask/app.py b/Flask/app.py index dce151d..6eb02d5 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -15,8 +15,10 @@ import redis # redis part for live update -redis_client = redis.StrictRedis(host='127.0.0.1', port=6379, db=0) -pubsub = redis_client.pubsub() +pool = redis.ConnectionPool(host='localhost', port=6379, db=0) +r = redis.Redis(connection_pool=pool) + +pubsub = r.pubsub() pubsub.subscribe('console') def generate_output(): diff --git a/version b/version index 49ea1df..103d6ad 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.46 +v6.6.47