mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +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;
|
||||
;;
|
||||
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;
|
||||
;;
|
||||
|
|
|
@ -155,7 +155,7 @@ db = 0
|
|||
[DB_Tracking]
|
||||
host = localhost
|
||||
port = 6382
|
||||
db = 3
|
||||
db = 2
|
||||
|
||||
[ARDB_Sentiment]
|
||||
host = localhost
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue