half way through doing course_adherence
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user