disable reload to allow debug in thread

This commit is contained in:
Florian Bezannier
2020-12-23 15:41:00 +01:00
parent 2e6e198419
commit 048477e692
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()