correct task adding
This commit is contained in:
parent
25c2b6b0d1
commit
757773f433
backend
File diff suppressed because one or more lines are too long
@ -136,7 +136,7 @@ def new_trip(preferences: Preferences,
|
|||||||
trip = Trip.from_linked_landmarks(linked_tour, cache_client)
|
trip = Trip.from_linked_landmarks(linked_tour, cache_client)
|
||||||
logger.info(f'Generated a trip of {trip.total_time} minutes with {len(refined_tour)} landmarks in {round(t_generate_landmarks + t_first_stage + t_second_stage,3)} seconds.')
|
logger.info(f'Generated a trip of {trip.total_time} minutes with {len(refined_tour)} landmarks in {round(t_generate_landmarks + t_first_stage + t_second_stage,3)} seconds.')
|
||||||
|
|
||||||
background_tasks.add(fill_cache())
|
background_tasks.add_task(fill_cache)
|
||||||
|
|
||||||
return trip
|
return trip
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user