Confirm that there were events returned from SCL
All checks were successful
ci/woodpecker/push/lint Pipeline was successful

This commit is contained in:
Liam Steckler 2024-02-15 07:18:08 -08:00
parent 27a4eb55f5
commit f290908ccb

2
scl.py
View file

@ -416,7 +416,7 @@ with Session(engine) as session:
for active_outage in session.scalars(lookup_active_outages_statement): for active_outage in session.scalars(lookup_active_outages_statement):
if ( if (
not any(event["id"] == active_outage.scl_outage_id for event in scl_events) not any(event["id"] == active_outage.scl_outage_id for event in scl_events)
and event and scl_events
): ):
# Event ID no longer exists in response # Event ID no longer exists in response
if active_outage.most_recent_post_id: if active_outage.most_recent_post_id: