diff options
Diffstat (limited to 'dashboard_website/router.py')
| -rw-r--r-- | dashboard_website/router.py | 1 |
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 |
