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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dashboard_website/dashboard.py b/dashboard_website/dashboard.py
index 793fcfd..78fb355 100644
--- a/dashboard_website/dashboard.py
+++ b/dashboard_website/dashboard.py
@@ -92,10 +92,12 @@ def requestRoute():
if clue == None:
return jsonify({'status' : "ERROR 5"})
- route = getRouteFullJSON(bike, clue)
+ route = router.getRouteFullJSON(bike, clue)
if route['code'] != 'Ok': # or some other code indicating routing problem?
return jsonify({'status' : "ERROR 6"})
+ db.reassignIndividualRoute(bike, route) # update displayed route on dashboard
+
reply = {"status" : "OK",
"clue_name" : clue.name,
"clue_long" : clue.longitude,