Send to funk

This commit is contained in:
Kekskurse 2019-07-11 13:58:05 +02:00
parent 8111c5a164
commit 8c6a0c4f39

View file

@ -240,6 +240,12 @@ def setupDB():
return "Accounts"
# GUI
@app.route('/sendToFunk', methods=['GET'])
@requires_auth
def sendToFunkByGui():
function_updateAccountsAtFunk()
return "Update send to funk"
@app.route("/accounts")
@requires_auth
def gui_liste():
@ -416,6 +422,7 @@ def print_date_time():
if app.debug == False:
print("Start cron");
print("Cron interval: "+str(UPDATE_INTERVAL))
scheduler = BackgroundScheduler()
scheduler.add_job(func=function_cron, trigger="interval", seconds=(UPDATE_INTERVAL))
scheduler.start()