Dashboard: Only send emails for status FAILED

This commit is contained in:
Ole Schütt 2025-12-04 09:30:55 +01:00 committed by Ole Schütt
parent acd3ab155c
commit 2fa06f6b70

View file

@ -196,7 +196,7 @@ def gen_frontpage(
if report.status == "OK":
status[s].last_ok = report.sha
status[s].notified = False
elif do_notify and not status[s].notified:
elif report.status == "FAILED" and do_notify and not status[s].notified:
send_notification(report, status[s].last_ok, log, name, s, send_emails)
status[s].notified = True