From 68c96ef7a769dc0e2224f85bc3fb2cc6f84e62e6 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Mon, 7 Mar 2022 15:54:56 +0100 Subject: [PATCH] fix: [v4.1] fix ardb # tracking DB --- bin/LAUNCH.sh | 4 +++- configs/core.cfg.sample | 2 +- update/v4.1/Update.py | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/LAUNCH.sh b/bin/LAUNCH.sh index 53338039..e245e4e0 100755 --- a/bin/LAUNCH.sh +++ b/bin/LAUNCH.sh @@ -589,6 +589,7 @@ function menu_display { shutdown; ;; Update) + checking_configuration; update; ;; Update-config) @@ -634,7 +635,8 @@ while [ "$1" != "" ]; do ;; -m | --menu ) menu_display; ;; - -u | --update ) update "--manual"; + -u | --update ) checking_configuration; + update "--manual"; ;; -t | --test ) launch_tests; ;; diff --git a/configs/core.cfg.sample b/configs/core.cfg.sample index 710b3b9b..705b648e 100644 --- a/configs/core.cfg.sample +++ b/configs/core.cfg.sample @@ -155,7 +155,7 @@ db = 0 [DB_Tracking] host = localhost port = 6382 -db = 3 +db = 2 [ARDB_Sentiment] host = localhost diff --git a/update/v4.1/Update.py b/update/v4.1/Update.py index 630ee414..40637355 100755 --- a/update/v4.1/Update.py +++ b/update/v4.1/Update.py @@ -21,9 +21,10 @@ class Updater(AIL_Updater): super(Updater, self).__init__(version) def update(self): - config_loader = ConfigLoader.ConfigLoader() - r_tracking = config_loader.get_redis_conn("DB_Tracking") - config_loader = None + r_tracking = redis.StrictRedis( host=localhost, + port=6382), + db=2, + decode_responses=True ) # FLUSH OLD DB r_tracking.flushdb()