withdraw from race
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user