From 3870491ebf6fdfe5049375b3968e4e2b61ec843d Mon Sep 17 00:00:00 2001 From: kishida Date: Tue, 5 Jul 2022 12:22:16 +0900 Subject: [PATCH] Correct optimization_waiting_time check statement Signed-off-by: kishida --- here_location_services/tour_planning_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/here_location_services/tour_planning_api.py b/here_location_services/tour_planning_api.py index 2db8276..6e13bb4 100644 --- a/here_location_services/tour_planning_api.py +++ b/here_location_services/tour_planning_api.py @@ -72,7 +72,7 @@ def solve_tour_planning( if optimization_traffic: data["configuration"]["optimizations"]["traffic"] = optimization_traffic - if optimization_traffic: + if optimization_waiting_time: data["configuration"]["optimizations"]["waitingTime"] = optimization_waiting_time data["fleet"] = vars(fleet)