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

View File

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