summaryrefslogtreecommitdiff
path: root/dashboard_website
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2023-11-18 06:46:52 -0500
committerAnson Bridges <bridges.anson@gmail.com>2023-11-18 06:46:52 -0500
commit982230fe97efb7f0584402288fba9d57c4e65a72 (patch)
treed1e46616fd56d769682f723655c8e24b956f7c04 /dashboard_website
parentd90f16568281d5b54b15b177fb6cce14b28c2e85 (diff)
revert test
Diffstat (limited to 'dashboard_website')
-rw-r--r--dashboard_website/router.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dashboard_website/router.py b/dashboard_website/router.py
index ed288c3..7d101cf 100644
--- a/dashboard_website/router.py
+++ b/dashboard_website/router.py
@@ -79,8 +79,8 @@ def cluster_and_optimize(clues: [Clue], bikes: [Bike], end: Point, time_diff=0.2
:return: a list of lists of clues (ordered by position on route), and a list of json route geojsons
"""
# OVERRIDE MAX TIME
- #max_time = datetime.datetime.now() - endtime
- #max_time = max_time.seconds//3600
+ 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