From 99ccdbef463be2d18fbd354083be3e2d765c5959 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 3 Oct 2023 12:24:39 +0200 Subject: [PATCH] c'est ce que hje cherchais nan ? --- Flask/app.py | 6 ++++-- version | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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