fixed dependcu
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m8s
Run linting on the backend code / Build (pull_request) Successful in 29s
Run testing on the backend code / Build (pull_request) Failing after 46s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 28s

This commit is contained in:
kscheidecker 2025-07-13 17:45:13 +02:00
parent b0f9d31ee2
commit d9e5d9dac6

View File

@ -10,7 +10,6 @@ from .refiner import Refiner
from ..structs.landmark import Landmark from ..structs.landmark import Landmark
from ..structs.preferences import Preferences from ..structs.preferences import Preferences
from ..structs.linked_landmarks import LinkedLandmarks from ..structs.linked_landmarks import LinkedLandmarks
from ..utils.take_most_important import take_most_important
from ..structs.trip import Trip from ..structs.trip import Trip
from ..overpass.overpass import fill_cache from ..overpass.overpass import fill_cache
from ..cache import client as cache_client from ..cache import client as cache_client
@ -97,7 +96,7 @@ def optimize_trip(
n_important = parameters['N_important'] n_important = parameters['N_important']
# Truncate to the most important landmarks for a shorter list # 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 # insert start and finish to the shorter landmarks list
landmarks_short.insert(0, start_landmark) landmarks_short.insert(0, start_landmark)