Private
Public Access
1
0

fixing messaging

This commit is contained in:
Sander Roosendaal
2020-06-08 17:44:00 +02:00
parent 3720af9ff6
commit d037ae2354
3 changed files with 9 additions and 3 deletions

View File

@@ -2336,14 +2336,16 @@ def handle_sendemailnewcomment(first_name,
@app.task
def handle_send_template_email(template,email,fromemail,rowername,
subject,message,debug=False,**kwargs):
fullemail = [email]
d = {
'message':message,
'rowername':rowername,
}
res = send_template_email(fromemail,fullemail,subject,
template,d,**kwargs)
res = send_template_email('Rowsandall <info@rowsandall.com>',
fullemail,subject,
template,d,cc=[fromemail],**kwargs)
@app.task
def handle_sendemail_message(email,fromemail,rowername,message,teamname,managername,

View File

@@ -6,5 +6,9 @@
{{ message }}
</p>
<p>
This email was sent on behalf of the challenge organizer, who was copied on this message.
</p>
{% endblock %}

View File

@@ -112,7 +112,7 @@ def sigdig(value, digits = 3):
return value
places = digits - order - 1
print(places,digits,order)
if places > 0:
fmtstr = "%%.%df" % (places)
else: