Private
Public Access
1
0

fixing idoklad

This commit is contained in:
2025-01-17 08:31:26 +01:00
parent 0b44f02cc6
commit cde6e6a6e9
3 changed files with 5 additions and 3 deletions

View File

@@ -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,

View File

@@ -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)

Binary file not shown.