diff --git a/cps/web.py b/cps/web.py index a946573e..3edc42a5 100644 --- a/cps/web.py +++ b/cps/web.py @@ -781,6 +781,12 @@ def get_tasks_status(): # ################################### Search functions ################################################################ +@app.route("/reconnect") +def reconnect(): + db.session.close() + db.engine.dispose() + db.setup_db() + return json.dumps({}) @web.route("/search", methods=["GET"]) @login_required_if_no_ano