bug fixes
This commit is contained in:
@@ -1003,13 +1003,14 @@ def checkbreakthrough(w, r):
|
||||
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(),
|
||||
surname=True)
|
||||
if coach.getemailnotifications and not coach.emailbounced:
|
||||
_ = myqueue(queuehigh, handle_sendemail_breakthrough,
|
||||
w.id,
|
||||
coach.user.email,
|
||||
r.user.first_name,
|
||||
r.user.last_name,
|
||||
btvalues=btvalues.to_json(),
|
||||
surname=True)
|
||||
|
||||
# submit email task to send email about breakthrough workout
|
||||
if ishard: # pragma: no cover
|
||||
@@ -1024,13 +1025,14 @@ def checkbreakthrough(w, r):
|
||||
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(),
|
||||
surname=True)
|
||||
if coach.getemailnotifications and not coach.emailbounced:
|
||||
_ = myqueue(queuehigh, handle_sendemail_hard,
|
||||
w.id,
|
||||
coach.user.email,
|
||||
r.user.first_name,
|
||||
r.user.last_name,
|
||||
btvalues=btvalues.to_json(),
|
||||
surname=True)
|
||||
|
||||
return isbreakthrough, ishard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user