added tests
This commit is contained in:
@@ -53,7 +53,9 @@ async def run_fce(
|
||||
|
||||
status = flight_status.get("status", "")
|
||||
delay_minutes = flight_status.get("delay_minutes", 0)
|
||||
should_notify = status in ("DELAYED", "CANCELLED", "DIVERTED") and delay_minutes >= 10
|
||||
should_notify = status in ("CANCELLED", "DIVERTED") or (
|
||||
status == "DELAYED" and delay_minutes >= 10
|
||||
)
|
||||
|
||||
await emit("node_exit", node="triage", result={"should_notify": should_notify})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user