Info display tweaks
This commit is contained in:
@@ -48,7 +48,7 @@ class CRUDPPR:
|
||||
return query.order_by(desc(PPRRecord.submitted_dt)).offset(skip).limit(limit).all()
|
||||
|
||||
def get_arrivals_today(self, db: Session) -> List[PPRRecord]:
|
||||
"""Get today's arrivals"""
|
||||
"""Get today's arrivals - includes aircraft that have arrived and may have departed"""
|
||||
today = date.today()
|
||||
return db.query(PPRRecord).filter(
|
||||
and_(
|
||||
@@ -56,7 +56,8 @@ class CRUDPPR:
|
||||
or_(
|
||||
PPRRecord.status == PPRStatus.NEW,
|
||||
PPRRecord.status == PPRStatus.CONFIRMED,
|
||||
PPRRecord.status == PPRStatus.LANDED
|
||||
PPRRecord.status == PPRStatus.LANDED,
|
||||
PPRRecord.status == PPRStatus.DEPARTED
|
||||
)
|
||||
)
|
||||
).order_by(PPRRecord.eta).all()
|
||||
|
||||
Reference in New Issue
Block a user