From 982230fe97efb7f0584402288fba9d57c4e65a72 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Sat, 18 Nov 2023 06:46:52 -0500 Subject: revert test --- dashboard_website/router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dashboard_website') 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 -- cgit v1.2.3