Merge pull request #7367 from saurabh6790/sms_log_fix
[fix] status check fix
This commit is contained in:
commit
b0e329b803
@ -77,7 +77,7 @@ def send_via_gateway(arg):
|
|||||||
for d in arg.get('receiver_list'):
|
for d in arg.get('receiver_list'):
|
||||||
args[ss.receiver_parameter] = d
|
args[ss.receiver_parameter] = d
|
||||||
status = send_request(ss.sms_gateway_url, args)
|
status = send_request(ss.sms_gateway_url, args)
|
||||||
if status > 200 and status < 300:
|
if status >= 200 and status < 300:
|
||||||
success_list.append(d)
|
success_list.append(d)
|
||||||
|
|
||||||
if len(success_list) > 0:
|
if len(success_list) > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user