summaryrefslogtreecommitdiff
path: root/dashboard_website/dashboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard_website/dashboard.py')
-rw-r--r--dashboard_website/dashboard.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/dashboard_website/dashboard.py b/dashboard_website/dashboard.py
index 757324d..15a019f 100644
--- a/dashboard_website/dashboard.py
+++ b/dashboard_website/dashboard.py
@@ -260,7 +260,8 @@ def getLatestInfo():
'home_changed' : False,
'routes_changed' : False,
'routes_to_commit' : db.routesToCommit,
- 'route_update_staged' : db.is_route_update_required() }
+ 'route_update_staged' : db.is_route_update_required(),
+ 'minimal_routing' : db.minimalRouting}
cl = db.getCluesJSON(last_timestamp)
if cl != False:
data['clues_changed'] = True
@@ -340,6 +341,9 @@ def siteControls():
if db.routesToCommit:
db.applyPreviewRoutes()
return jsonify({"status" : "OK"})
+ elif cmd == "toggleMinimal":
+ db.toggleMinimalRouting()
+ return jsonify({"status" : "OK"})
return render_template("controls.html")