Аня попросила чуть чуть изменить

This commit is contained in:
maksim 2024-06-05 20:37:30 +04:00
parent f6685b2d82
commit 25c34daadd

View File

@ -28,13 +28,7 @@ async def get_flight(request: TripRequest):
resultTo = genetic_algorithm(start=start_point, end=end_point, graph=graphTo, flights_data=flightsDataTo,
type="to")
resultTo.append({
"back": [
{
"id": None,
"departurePoint": None,
"destinationPoint": None
}
]
"back": []
})
if not resultTo: