not sure if this works
This commit is contained in:
@@ -1699,6 +1699,57 @@ def handle_makeplot(f1, f2, t, hrdata, plotnr, imagename,
|
||||
|
||||
# Team related remote tasks
|
||||
|
||||
@app.task
|
||||
def handle_sendemail_coachrequest(email,name,code,coachname,
|
||||
debug=False,**kwargs):
|
||||
|
||||
fullemail = email
|
||||
subject = 'Invitation to add {n} to your athletes'.format(n=name)
|
||||
|
||||
siteurl = SITE_URL
|
||||
if debug:
|
||||
siteurl = SITE_URL_DEV
|
||||
|
||||
d = {
|
||||
'name':name,
|
||||
'coach':coachname,
|
||||
'code':code,
|
||||
'siteurl':siteurl
|
||||
}
|
||||
|
||||
form_email = 'Rowsandall <info@rowsandall.com>'
|
||||
|
||||
res = send_template_email(from_email,[fullemail],
|
||||
subject,'coachrequestemail.html',d,
|
||||
**kwargs)
|
||||
|
||||
return 1
|
||||
|
||||
@app.task
|
||||
def handle_sendemail_coacheerequest(email,name,code,coachname,
|
||||
debug=False,**kwargs):
|
||||
|
||||
fullemail = email
|
||||
subject = '{n} asks coach access to your data on rowsandall.com'.format(n=coachname)
|
||||
|
||||
siteurl = SITE_URL
|
||||
if debug:
|
||||
siteurl = SITE_URL_DEV
|
||||
|
||||
d = {
|
||||
'name':name,
|
||||
'coach':coachname,
|
||||
'code':code,
|
||||
'siteurl':siteurl
|
||||
}
|
||||
|
||||
form_email = 'Rowsandall <info@rowsandall.com>'
|
||||
|
||||
res = send_template_email(from_email,[fullemail],
|
||||
subject,'coacheerequestemail.html',d,
|
||||
**kwargs)
|
||||
|
||||
return 1
|
||||
|
||||
@app.task
|
||||
def handle_sendemail_invite(email, name, code, teamname, manager,
|
||||
|
||||
Reference in New Issue
Block a user