[fix] create SMS Log

This commit is contained in:
Rushabh Mehta 2015-05-20 15:48:58 +05:30
parent 521aa2e94a
commit 9624bac3cf

View File

@ -2,7 +2,7 @@
# License: GNU General Public License v3. See license.txt # License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals from __future__ import unicode_literals
import frappe, json import frappe
from frappe import _, throw, msgprint from frappe import _, throw, msgprint
from frappe.utils import cstr, nowdate from frappe.utils import cstr, nowdate
@ -92,6 +92,8 @@ def send_request(gateway_url, args):
conn.request('GET', api_url + urllib.urlencode(args), headers = headers) # send request conn.request('GET', api_url + urllib.urlencode(args), headers = headers) # send request
resp = conn.getresponse() # get response resp = conn.getresponse() # get response
resp = resp.read() resp = resp.read()
if resp.status==200:
create_sms_log()
return resp return resp
# Split gateway url to server and api url # Split gateway url to server and api url