Private
Public Access
1
0

adding athlete last name to alert

This commit is contained in:
Sander Roosendaal
2022-09-16 16:19:01 +02:00
parent 961d4d9ab2
commit c7f1306df1
4 changed files with 20 additions and 3 deletions

View File

@@ -980,6 +980,13 @@ def checkbreakthrough(w, r):
r.user.first_name,
r.user.last_name,
btvalues=btvalues.to_json())
for coach in r.get_coaches():
_ = myqueue(queuehigh, handle_sendemail_breakthrough,
w.id,
coach.user.email,
r.user.first_name,
r.user.last_name,
btvalues=btvalues.to_json())
# submit email task to send email about breakthrough workout
if ishard: # pragma: no cover
@@ -993,6 +1000,13 @@ def checkbreakthrough(w, r):
r.user.first_name,
r.user.last_name,
btvalues=btvalues.to_json())
for coach in r.get_coaches():
_ = myqueue(queuehigh, handle_sendemail_hard,
w.id,
coach.user.email,
r.user.first_name,
r.user.last_name,
btvalues=btvalues.to_json())
return isbreakthrough, ishard