summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2023-11-10 17:45:55 -0500
committerAnson Bridges <bridges.anson@gmail.com>2023-11-10 17:45:55 -0500
commit9b621eb842d43f9403c063ba1e0fbeee5ff74d74 (patch)
treed1cb1d2b716c020c7182abdb2089afd0c25a6b2c
parent39cd38aa9526143c4d56f3eb4f592c07de673817 (diff)
...
-rw-r--r--dashboard_website/db.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dashboard_website/db.py b/dashboard_website/db.py
index eb0adec..5f09f47 100644
--- a/dashboard_website/db.py
+++ b/dashboard_website/db.py
@@ -58,9 +58,11 @@ def getTime():
return time.time()
def reassignIndividualRoute(bike, route_json):
+ global routes_last_changed
for i, b in enumerate(bikes):
if b.name == bike.name:
routes['individual_routes'][i] = route_json['routes'][0]['geometry']['coordinates']
+ routes_last_changed = time.time()
return
def getHomeBaseJSON(timestamp):