Inactive users are no longer notified

This commit is contained in:
Jonathan Balls 2014-11-18 19:40:03 +00:00
parent 3ed5f36bca
commit 9d88e5d846
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ telephone_template = "This is an urgent message from Arachnys monitoring. Servic
def send_alert(service, duty_officers=None):
users = service.users_to_notify.all()
users = service.users_to_notify.filter(is_active=True)
if service.email_alert:
send_email_alert(service, users, duty_officers)
if service.hipchat_alert: