added email notification
This commit is contained in:
@@ -69,6 +69,15 @@ def handle_updatedps(useremail,workoutids,debug=False):
|
|||||||
if havedata:
|
if havedata:
|
||||||
update_strokedata(wid,rowdata.df,debug=debug)
|
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
|
return 1
|
||||||
|
|
||||||
# send email when a breakthrough workout is uploaded
|
# send email when a breakthrough workout is uploaded
|
||||||
|
|||||||
Reference in New Issue
Block a user