Feature enhancement
This commit is contained in:
@@ -48,7 +48,7 @@ async def get_public_arrivals(db: Session = Depends(get_db)):
|
||||
'ac_reg': flight.registration,
|
||||
'ac_type': flight.type,
|
||||
'in_from': None,
|
||||
'eta': flight.departure_dt,
|
||||
'eta': flight.departed_dt,
|
||||
'landed_dt': None,
|
||||
'status': 'DEPARTED',
|
||||
'isLocalFlight': True,
|
||||
@@ -92,7 +92,7 @@ async def get_public_departures(db: Session = Depends(get_db)):
|
||||
'ac_reg': flight.registration,
|
||||
'ac_type': flight.type,
|
||||
'out_to': None,
|
||||
'etd': flight.booked_out_dt,
|
||||
'etd': flight.etd or flight.created_dt,
|
||||
'departed_dt': None,
|
||||
'status': 'BOOKED_OUT',
|
||||
'isLocalFlight': True,
|
||||
@@ -114,7 +114,7 @@ async def get_public_departures(db: Session = Depends(get_db)):
|
||||
'ac_reg': dep.registration,
|
||||
'ac_type': dep.type,
|
||||
'out_to': dep.out_to,
|
||||
'etd': dep.booked_out_dt,
|
||||
'etd': dep.etd or dep.created_dt,
|
||||
'departed_dt': None,
|
||||
'status': 'BOOKED_OUT',
|
||||
'isLocalFlight': False,
|
||||
|
||||
Reference in New Issue
Block a user