Аня попросила чуть чуть изменить
This commit is contained in:
parent
f6685b2d82
commit
25c34daadd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user