From 048477e692bcb414b233df8c11d5f7704a25b61c Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Wed, 23 Dec 2020 15:41:00 +0100 Subject: [PATCH] disable reload to allow debug in thread --- web/app.py | 2 +- web/callback.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app.py b/web/app.py index 7eee8d1..ecc9583 100644 --- a/web/app.py +++ b/web/app.py @@ -34,7 +34,7 @@ def start_app(title, base_path, debug: bool, host, port): dash_app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP], external_scripts=locale_url, title=title, server=app, requests_pathname_prefix=requests_pathname_prefix) import web.callback - return run_simple(host, port, application, use_reloader=debug, use_debugger=debug) + return run_simple(host, port, application, use_reloader=False, use_debugger=debug) myp = None diff --git a/web/callback.py b/web/callback.py index 5bd1dd2..16b8d7f 100644 --- a/web/callback.py +++ b/web/callback.py @@ -160,5 +160,5 @@ dash_app.layout = dbc.Container(fluid=True, children=[ conn = get_db() conn.create_function("update_trips", 0, update_trips) -conn.execute("CREATE TEMP TRIGGER IF NOT EXISTS update_trigger AFTER INSERT ON main.position BEGIN SELECT update_trips(); END;") +conn.execute("CREATE TEMP TRIGGER IF NOT EXISTS update_trigger AFTER INSERT ON position BEGIN SELECT update_trips(); END;") conn.commit()