diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2023-11-18 06:31:45 -0500 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2023-11-18 06:31:45 -0500 |
| commit | 77f0992b6c2656a2d9e451072e2949ede647de02 (patch) | |
| tree | b8256cc408b14305e1b3c0846b0758bc7ba044e8 | |
| parent | c560de266caad6db97e58757ca43e8558c103c01 (diff) | |
fixed td
| -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 |
