fixing idoklad
This commit is contained in:
@@ -87,6 +87,8 @@ def get_contacts(rower):
|
|||||||
res = requests.get(url, headers=headers)
|
res = requests.get(url, headers=headers)
|
||||||
|
|
||||||
dologging('idoklad.log','Searching Contact Status code '+str(res.status_code)+'\n')
|
dologging('idoklad.log','Searching Contact Status code '+str(res.status_code)+'\n')
|
||||||
|
#dologging('idoklad.log','Searching Contact Status code '+str(res.text)+'\n')
|
||||||
|
dologging('idoklad.log','Searching Contact Status code '+str(res.reason)+'\n')
|
||||||
|
|
||||||
if res.status_code != 200: # pragma: no cover
|
if res.status_code != 200: # pragma: no cover
|
||||||
return None
|
return None
|
||||||
@@ -146,7 +148,7 @@ def create_contact(rower):
|
|||||||
res = requests.post(contacts_url, json=data, headers=headers)
|
res = requests.post(contacts_url, json=data, headers=headers)
|
||||||
|
|
||||||
if res.status_code not in [200, 201]:
|
if res.status_code not in [200, 201]:
|
||||||
dologging('idoklad.log','Contact Created - reason '+str(res.reason)+'\n')
|
dologging('idoklad.log','Contact Not Created - reason '+str(res.reason)+'\n')
|
||||||
_ = myqueue(
|
_ = myqueue(
|
||||||
queuehigh, handle_send_email_noinvoice,
|
queuehigh, handle_send_email_noinvoice,
|
||||||
rower.user.email,
|
rower.user.email,
|
||||||
|
|||||||
@@ -1804,7 +1804,7 @@ def sigdig(value, digits=3):
|
|||||||
def handle_send_email_noinvoice(
|
def handle_send_email_noinvoice(
|
||||||
useremail, userfirstname, userlastname, reason, **kwargs):
|
useremail, userfirstname, userlastname, reason, **kwargs):
|
||||||
|
|
||||||
subject = "Reason"
|
subject = "Idoklad: No invoice created"
|
||||||
|
|
||||||
from_email = 'Rowsandall <admin@rowsandall.com>'
|
from_email = 'Rowsandall <admin@rowsandall.com>'
|
||||||
d = {
|
d = {
|
||||||
@@ -1813,7 +1813,7 @@ def handle_send_email_noinvoice(
|
|||||||
'reason': reason,
|
'reason': reason,
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = send_template_email(from_email, support@rowsandall.com, subject,
|
_ = send_template_email(from_email, "support@rowsandall.com", subject,
|
||||||
'paymentconfirmationemail_noinvoice.html',
|
'paymentconfirmationemail_noinvoice.html',
|
||||||
d, **kwargs)
|
d, **kwargs)
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user