Skip to content
Snippets Groups Projects
Commit 474eaeed authored by Tanner Prestegard's avatar Tanner Prestegard Committed by Alexander Pace
Browse files

fix to alerts for when test events are labeled

parent dc4abbe4
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,10 @@ def issueAlertForLabel(event, label, doxmpp, serialized_event=None, event_url=No
fromaddress = settings.ALERT_TEST_EMAIL_FROM
toaddresses = settings.ALERT_TEST_EMAIL_TO
bccaddresses = []
message += "\n\nWould have send email to: %s" % str(profileRecips)
message += "\n\nWould have sent email to: %s" % str(profileRecips)
message += "\n\nWould have called/texted: {0}" \
.format(str([c.phone for c in phoneRecips]))
phoneRecips = []
else:
fromaddress = settings.ALERT_EMAIL_FROM
toaddresses = []
......@@ -278,7 +281,6 @@ def issuePhoneAlert(event):
if recip.phone:
phoneRecips.append(recip)
# Make phone calls.
if phoneRecips:
make_twilio_calls(event, phoneRecips, "create")
......
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