From 8c6a0c4f3944d1f683d0ba6fe670a8ceb96ee6cd Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Thu, 11 Jul 2019 13:58:05 +0200 Subject: [PATCH] Send to funk --- server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.py b/server.py index 5bda920..b10795f 100644 --- a/server.py +++ b/server.py @@ -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()