1
This commit is contained in:
parent
2fa5ba1a09
commit
a5f277c4b6
@ -11,6 +11,9 @@ import json
|
||||
|
||||
CONFIG_DIR = '../config' if f7.isOnlineEnv() else '/var/data/conf_test/mailsender/config'
|
||||
|
||||
def fetchEvent(refresh_time):
|
||||
pass
|
||||
|
||||
def getConf():
|
||||
cluster_conf = json.loads(open(CONFIG_DIR + '/mailsender.cluster.json', 'r').read())
|
||||
for conf in cluster_conf:
|
||||
@ -29,5 +32,9 @@ if __name__ == "__main__":
|
||||
|
||||
conf = getConf()
|
||||
# f7.app.registerHandler('Login', 'auth', __loginAuth)
|
||||
conf['refresh_time'] = 10
|
||||
f7.timer.callLater(conf['refresh_time'],
|
||||
lambda : fetchEvent(conf['refresh_time']))
|
||||
|
||||
f7.app.listen(conf['listen_port'])
|
||||
f7.app.start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user