2022-03-07 15:12:01 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*-coding:UTF-8 -*
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import redis
|
|
|
|
|
2022-11-23 11:02:33 +01:00
|
|
|
sys.path.append(os.environ['AIL_HOME'])
|
|
|
|
##################################
|
|
|
|
# Import Project packages
|
|
|
|
##################################
|
|
|
|
from update.bin.old_ail_updater import AIL_Updater
|
2022-03-07 15:12:01 +01:00
|
|
|
|
|
|
|
class Updater(AIL_Updater):
|
|
|
|
"""default Updater."""
|
|
|
|
|
|
|
|
def __init__(self, version):
|
|
|
|
super(Updater, self).__init__(version)
|
|
|
|
|
|
|
|
def update(self):
|
2022-11-23 11:02:33 +01:00
|
|
|
r_tracking = redis.StrictRedis(host='localhost',
|
|
|
|
port=6382,
|
|
|
|
db=2,
|
|
|
|
decode_responses=True)
|
2022-03-07 15:12:01 +01:00
|
|
|
# FLUSH OLD DB
|
|
|
|
r_tracking.flushdb()
|
|
|
|
|
|
|
|
|
2022-11-23 11:02:33 +01:00
|
|
|
if __name__ == '__main__':
|
2022-03-07 15:12:01 +01:00
|
|
|
updater = Updater('v4.1')
|
|
|
|
updater.run_update()
|