From ef3151f34c82d744651a46e44b40229fee09bcfc Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:39:50 +0100 Subject: [PATCH] Make Redis DBs configurable --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a29e1d7..473fd3e 100644 --- a/main.py +++ b/main.py @@ -106,5 +106,5 @@ def initConf(): def initMain(): global r, g initConf() - r = StrictRedis(unix_socket_path=config["RedisSocket"], db=0) # Ephemeral - flushed on quit - g = StrictRedis(unix_socket_path=config["RedisSocket"], db=1) # Persistent + r = StrictRedis(unix_socket_path=config["RedisSocket"], db=config["RedisDBEphemeral"]) # Ephemeral - flushed on quit + g = StrictRedis(unix_socket_path=config["RedisSocket"], db=config["RedisDBPersistent"]) # Persistent