Fix last commit about time_to handling

This commit is contained in:
Lucas Verney 2018-01-21 10:41:22 +01:00
parent a391d51d67
commit 03476dc8a5

View File

@ -436,7 +436,7 @@ def compute_travel_times(flats_list, constraint, config):
if time_to_place:
LOGGER.info(
"Travel time between %s and flat %s is %ds.",
place_name, flat["id"], time_to_place["time"]
place_name, flat["id"], time_to_place
)
flat["flatisfy"]["time_to"][place_name] = time_to_place
return flats_list