summaryrefslogtreecommitdiff
path: root/dashboard_website/dashboard.py
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2023-11-10 17:41:35 -0500
committerAnson Bridges <bridges.anson@gmail.com>2023-11-10 17:41:35 -0500
commit39cd38aa9526143c4d56f3eb4f592c07de673817 (patch)
tree3150f08ae3062021dbfdbc20be640ba028357819 /dashboard_website/dashboard.py
parent2fc0d764522be9d4ac77ce7349f50fc40dc875e0 (diff)
some api fixes, display reroutes
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,