Private
Public Access
1
0

half way through doing course_adherence

This commit is contained in:
Sander Roosendaal
2018-02-21 17:23:53 +01:00
parent 95a2fb86ae
commit 0c00fb164f
5 changed files with 102 additions and 9 deletions

View File

@@ -289,6 +289,10 @@ def handle_sendemail_breakthrough(workoutid, useremail,
btvalues=pd.DataFrame().to_json(),
**kwargs):
siteurl = SITE_URL
if debug:
siteurl = SITE_URL_DEV
# send email with attachment
subject = "A breakthrough workout on rowsandall.com"
message = "Dear " + userfirstname + ",\n"
@@ -299,11 +303,11 @@ def handle_sendemail_breakthrough(workoutid, useremail,
message += "sustain for a given duration. For more, see this "
message += " article in the analytics blog:\n\n"
message += " http://analytics.rowsandall.com/2017/06/17/how-do-we-calculate-critical-power/ \n\n"
message += "Link to the workout http://rowsandall.com/rowers/workout/"
message += "Link to the workout "+siteurl+"/rowers/workout/"
message += str(workoutid)
message += "/edit\n\n"
message += "To add the workout to your Ranking workouts and see the updated CP plot, click the following link:\n"
message += "http://rowsandall.com/rowers/workout/"
message += siteurl+"/rowers/workout/"
message += str(workoutid)
message += "/updatecp\n\n"
@@ -349,6 +353,10 @@ def handle_sendemail_hard(workoutid, useremail,
btvalues=pd.DataFrame().to_json(),
debug=False,**kwargs):
siteurl = SITE_URL
if debug:
siteurl = SITE_URL_DEV
# send email with attachment
subject = "That was a pretty hard workout on rowsandall.com"
message = "Dear " + userfirstname + ",\n"
@@ -359,7 +367,7 @@ def handle_sendemail_hard(workoutid, useremail,
message += "sustain for a given duration. For more, see this "
message += " article in the analytics blog:\n\n"
message += " http://analytics.rowsandall.com/2017/06/17/how-do-we-calculate-critical-power/ \n\n"
message += "Link to the workout http://rowsandall.com/rowers/workout/"
message += "Link to the workout: "+siteurl+"/rowers/workout/"
message += str(workoutid)
message += "/edit\n\n"