fix issue with travel time

This commit is contained in:
nicofrand 2018-01-20 18:03:44 +01:00 committed by Phyks (Lucas Verney)
parent e2bc3c7a85
commit a391d51d67
1 changed files with 8 additions and 3 deletions

View File

@ -424,9 +424,14 @@ def compute_travel_times(flats_list, constraint, config):
place["gps"],
config
)
if time_from_station and (time_from_station < time_to_place or
time_to_place is None):
time_to_place = time_from_station
if (
time_from_station and
(
time_from_station["time"] < time_to_place or
time_to_place is None
)
):
time_to_place = time_from_station["time"]
if time_to_place:
LOGGER.info(