fix issue with travel time
This commit is contained in:
parent
e2bc3c7a85
commit
a391d51d67
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user