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()