summaryrefslogtreecommitdiff
path: root/dashboard_website
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2023-11-18 06:31:45 -0500
committerAnson Bridges <bridges.anson@gmail.com>2023-11-18 06:31:45 -0500
commit77f0992b6c2656a2d9e451072e2949ede647de02 (patch)
treeb8256cc408b14305e1b3c0846b0758bc7ba044e8 /dashboard_website
parentc560de266caad6db97e58757ca43e8558c103c01 (diff)
fixed td
Diffstat (limited to 'dashboard_website')
-rw-r--r--dashboard_website/router.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/dashboard_website/router.py b/dashboard_website/router.py
index 1a90a9e..9b14e39 100644
--- a/dashboard_website/router.py
+++ b/dashboard_website/router.py
@@ -80,6 +80,7 @@ def cluster_and_optimize(clues: [Clue], bikes: [Bike], end: Point, time_diff=0.2
"""
# OVERRIDE MAX TIME
max_time = datetime.datetime.now() - endtime
+ max_time = max_time.seconds//3600
routes = [clues] # one bike = one set of routes. only need to remove the faraway waypoints
if len(bikes) > 1:
# Create a new column with normalized gps coordinates and centroids