Private
Public Access
1
0

withdraw from race

This commit is contained in:
Sander Roosendaal
2020-05-23 16:00:04 +02:00
parent 248276ddcf
commit 3159526e64
7 changed files with 353 additions and 2 deletions

View File

@@ -1148,6 +1148,37 @@ def handle_send_disqualification_email(
return 1
@app.task
def handle_send_withdraw_email(
useremail,username,reason,message, racename, **kwargs):
if 'debug' in kwargs:
debug = kwargs['debug']
else:
debug = True
subject = "Your result for {n} has been disqualified on rowsandall.com".format(
n = racename
)
from_email = 'Rowsandall <support@rowsandall.com>'
d = {
'username':username,
'reason':reason,
'siteurl':siteurl,
'message': htmlstrip(message),
'racename':racename,
}
res = send_template_email(from_email,[useremail],
subject,
'withdraw_email.html',
d,**kwargs)
return 1
@app.task
def handle_sendemail_expired(useremail,userfirstname,userlastname,expireddate,
**kwargs):