mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
31 lines
777 B
Python
Executable file
31 lines
777 B
Python
Executable file
#!/usr/bin/env python3
|
|
# -*-coding:UTF-8 -*
|
|
|
|
import os
|
|
import sys
|
|
import redis
|
|
|
|
sys.path.append(os.environ['AIL_HOME'])
|
|
##################################
|
|
# Import Project packages
|
|
##################################
|
|
from update.bin.old_ail_updater import AIL_Updater
|
|
|
|
class Updater(AIL_Updater):
|
|
"""default Updater."""
|
|
|
|
def __init__(self, version):
|
|
super(Updater, self).__init__(version)
|
|
|
|
def update(self):
|
|
r_tracking = redis.StrictRedis(host='localhost',
|
|
port=6382,
|
|
db=2,
|
|
decode_responses=True)
|
|
# FLUSH OLD DB
|
|
r_tracking.flushdb()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
updater = Updater('v4.1')
|
|
updater.run_update()
|