Аня попросила чуть чуть изменить
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,
|
resultTo = genetic_algorithm(start=start_point, end=end_point, graph=graphTo, flights_data=flightsDataTo,
|
||||||
type="to")
|
type="to")
|
||||||
resultTo.append({
|
resultTo.append({
|
||||||
"back": [
|
"back": []
|
||||||
{
|
|
||||||
"id": None,
|
|
||||||
"departurePoint": None,
|
|
||||||
"destinationPoint": None
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if not resultTo:
|
if not resultTo:
|
||||||
|
Loading…
Reference in New Issue
Block a user