diff --git a/backend/src/optimization/optimization_router.py b/backend/src/optimization/optimization_router.py index 5dd1351..8a6d318 100644 --- a/backend/src/optimization/optimization_router.py +++ b/backend/src/optimization/optimization_router.py @@ -10,7 +10,6 @@ from .refiner import Refiner from ..structs.landmark import Landmark from ..structs.preferences import Preferences from ..structs.linked_landmarks import LinkedLandmarks -from ..utils.take_most_important import take_most_important from ..structs.trip import Trip from ..overpass.overpass import fill_cache from ..cache import client as cache_client @@ -97,7 +96,7 @@ def optimize_trip( n_important = parameters['N_important'] # Truncate to the most important landmarks for a shorter list - landmarks_short = take_most_important(landmarks, n_important) + landmarks_short = landmarks[:n_important] # insert start and finish to the shorter landmarks list landmarks_short.insert(0, start_landmark)