diff --git a/backend/src/structs/linked_landmarks.py b/backend/src/structs/linked_landmarks.py index 6c74c74..a00a026 100644 --- a/backend/src/structs/linked_landmarks.py +++ b/backend/src/structs/linked_landmarks.py @@ -52,7 +52,7 @@ class LinkedLandmarks: # Update 'is_secondary' for landmarks with attractiveness below the threshold score for landmark in self._landmarks: - if landmark.attractiveness < threshold_score: + if landmark.attractiveness < threshold_score and landmark.type not in ["start", "finish"]: landmark.is_secondary = True diff --git a/backend/src/tester.py b/backend/src/tester.py index 8144101..ff81fb7 100644 --- a/backend/src/tester.py +++ b/backend/src/tester.py @@ -24,7 +24,7 @@ def test(start_coords: tuple[float, float], finish_coords: tuple[float, float] = nature=Preference(type='nature', score = 5), shopping=Preference(type='shopping', score = 5), - max_time_minute=120, + max_time_minute=180, detour_tolerance_minute=10 ) @@ -73,6 +73,6 @@ def test(start_coords: tuple[float, float], finish_coords: tuple[float, float] = # test(tuple((48.8344400, 2.3220540))) # Café Chez César # test(tuple((48.8375946, 2.2949904))) # Point random # test(tuple((47.377859, 8.540585))) # Zurich HB -# test(tuple((45.758217, 4.831814))) # Lyon Bellecour -test(tuple((48.5848435, 7.7332974))) # Strasbourg Gare +test(tuple((45.758217, 4.831814))) # Lyon Bellecour +# test(tuple((48.5848435, 7.7332974))) # Strasbourg Gare # test(tuple((48.2067858, 16.3692340))) # Vienne