adding athlete last name to alert
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user