c'est ce que hje cherchais nan ?
This commit is contained in:
parent
ab74f5b642
commit
99ccdbef46
@ -15,8 +15,10 @@ import redis
|
|||||||
|
|
||||||
|
|
||||||
# redis part for live update
|
# redis part for live update
|
||||||
redis_client = redis.StrictRedis(host='127.0.0.1', port=6379, db=0)
|
pool = redis.ConnectionPool(host='localhost', port=6379, db=0)
|
||||||
pubsub = redis_client.pubsub()
|
r = redis.Redis(connection_pool=pool)
|
||||||
|
|
||||||
|
pubsub = r.pubsub()
|
||||||
pubsub.subscribe('console')
|
pubsub.subscribe('console')
|
||||||
|
|
||||||
def generate_output():
|
def generate_output():
|
||||||
|
Loading…
Reference in New Issue
Block a user