mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Merge branch 'txt_msg' of github.com:AJamesPhillips/cabot into AJamesPhillips-txt_msg
This commit is contained in:
commit
0bfebe61c8
@ -121,9 +121,10 @@ def send_sms_alert(service, users, duty_officers):
|
||||
'host': settings.WWW_HTTP_HOST,
|
||||
})
|
||||
message = Template(sms_template).render(c)
|
||||
mobiles = list(set(mobiles))
|
||||
for mobile in mobiles:
|
||||
try:
|
||||
message = client.sms.messages.create(
|
||||
client.sms.messages.create(
|
||||
to=mobile,
|
||||
from_=settings.TWILIO_OUTGOING_NUMBER,
|
||||
body=message,
|
||||
|
Loading…
x
Reference in New Issue
Block a user