diff --git a/rowers/tasks.py b/rowers/tasks.py index 28496b79..71399b50 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -69,6 +69,15 @@ def handle_updatedps(useremail,workoutids,debug=False): if havedata: update_strokedata(wid,rowdata.df,debug=debug) + subject = "Rowsandall.com Your Distance per Stroke metric has been updated" + message = "All your workouts now have Distance per Stroke" + + email = EmailMessage(subject, message, + 'Rowsandall ', + [useremail]) + + res = email.send() + return 1 # send email when a breakthrough workout is uploaded