style: apply Ruff formatting
Test blackout notifier / test (push) Successful in 4s
Hourly blackout check / check (push) Successful in 5s

This commit is contained in:
Meghdad
2026-07-22 03:20:01 +03:30
parent 42687ee651
commit ea03d84901
4 changed files with 7 additions and 16 deletions
+2 -6
View File
@@ -91,9 +91,7 @@ class OutageService:
previous = Outage.from_dict(record["snapshot"])
if record["status"] == "cancelled":
if self._notify(
chat_ids, reactivated_outage_message(bill_id, outage, now), result
):
if self._notify(chat_ids, reactivated_outage_message(bill_id, outage, now), result):
records[event_id] = _record(outage, now)
result.state_changed = True
continue
@@ -126,9 +124,7 @@ class OutageService:
if record["missing_checks"] == 0:
record["missing_checks"] = 1
result.state_changed = True
elif self._notify(
chat_ids, cancelled_outage_message(bill_id, previous, now), result
):
elif self._notify(chat_ids, cancelled_outage_message(bill_id, previous, now), result):
record["status"] = "cancelled"
record["missing_checks"] = 2
record["notified_at"] = now.isoformat()