From 39cd38aa9526143c4d56f3eb4f592c07de673817 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Fri, 10 Nov 2023 17:41:35 -0500 Subject: some api fixes, display reroutes --- dashboard_website/dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dashboard_website/dashboard.py') 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, -- cgit v1.2.3