Skip to content
Snippets Groups Projects
Commit 8a30f2ce authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Don't issue phone/email alerts for offline events

parent d9e5caeb
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -131,6 +131,10 @@ def issue_alerts(event_or_superevent, alert_type, url=None, file_name="",
or event.group.name == 'Test'):
return
# Don't send them for offline events, either
if event.offline:
return
# Compile phone and email recipients for alert
if alert_type == "new":
email_recips, phone_recips = get_alert_recips(event_or_superevent)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment