From d9e5d9dac6a10ce6f75480f442ef77dc9da266f4 Mon Sep 17 00:00:00 2001 From: kscheidecker Date: Sun, 13 Jul 2025 17:45:13 +0200 Subject: [PATCH] fixed dependcu --- backend/src/optimization/optimization_router.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)