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