mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-26 10:17:18 +00:00
disable reload to allow debug in thread
This commit is contained in:
+1
-1
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user