Commit often...
This commit is contained in:
@@ -152,6 +152,7 @@ async def update_ppr_status(
|
||||
db,
|
||||
ppr_id=ppr_id,
|
||||
status=status_update.status,
|
||||
timestamp=status_update.timestamp,
|
||||
user=current_user.username,
|
||||
user_ip=client_ip
|
||||
)
|
||||
@@ -169,7 +170,7 @@ async def update_ppr_status(
|
||||
"id": ppr.id,
|
||||
"ac_reg": ppr.ac_reg,
|
||||
"status": ppr.status.value,
|
||||
"timestamp": ppr.landed_dt.isoformat() if ppr.landed_dt else None
|
||||
"timestamp": ppr.landed_dt.isoformat() if ppr.landed_dt else (ppr.departed_dt.isoformat() if ppr.departed_dt else None)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user