mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [v4.1] fix ardb # tracking DB
This commit is contained in:
parent
7e6577961b
commit
68c96ef7a7
3 changed files with 8 additions and 5 deletions
|
@ -589,6 +589,7 @@ function menu_display {
|
||||||
shutdown;
|
shutdown;
|
||||||
;;
|
;;
|
||||||
Update)
|
Update)
|
||||||
|
checking_configuration;
|
||||||
update;
|
update;
|
||||||
;;
|
;;
|
||||||
Update-config)
|
Update-config)
|
||||||
|
@ -634,7 +635,8 @@ while [ "$1" != "" ]; do
|
||||||
;;
|
;;
|
||||||
-m | --menu ) menu_display;
|
-m | --menu ) menu_display;
|
||||||
;;
|
;;
|
||||||
-u | --update ) update "--manual";
|
-u | --update ) checking_configuration;
|
||||||
|
update "--manual";
|
||||||
;;
|
;;
|
||||||
-t | --test ) launch_tests;
|
-t | --test ) launch_tests;
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -155,7 +155,7 @@ db = 0
|
||||||
[DB_Tracking]
|
[DB_Tracking]
|
||||||
host = localhost
|
host = localhost
|
||||||
port = 6382
|
port = 6382
|
||||||
db = 3
|
db = 2
|
||||||
|
|
||||||
[ARDB_Sentiment]
|
[ARDB_Sentiment]
|
||||||
host = localhost
|
host = localhost
|
||||||
|
|
|
@ -21,9 +21,10 @@ class Updater(AIL_Updater):
|
||||||
super(Updater, self).__init__(version)
|
super(Updater, self).__init__(version)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
config_loader = ConfigLoader.ConfigLoader()
|
r_tracking = redis.StrictRedis( host=localhost,
|
||||||
r_tracking = config_loader.get_redis_conn("DB_Tracking")
|
port=6382),
|
||||||
config_loader = None
|
db=2,
|
||||||
|
decode_responses=True )
|
||||||
|
|
||||||
# FLUSH OLD DB
|
# FLUSH OLD DB
|
||||||
r_tracking.flushdb()
|
r_tracking.flushdb()
|
||||||
|
|
Loading…
Reference in a new issue