Private
Public Access
1
0

added email notification

This commit is contained in:
Sander Roosendaal
2017-09-20 17:03:45 +02:00
parent aea87f6815
commit 64816a1c66

View File

@@ -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 <info@rowsandall.com>',
[useremail])
res = email.send()
return 1
# send email when a breakthrough workout is uploaded