bug fixes
This commit is contained in:
@@ -1003,6 +1003,7 @@ def checkbreakthrough(w, r):
|
|||||||
r.user.last_name,
|
r.user.last_name,
|
||||||
btvalues=btvalues.to_json())
|
btvalues=btvalues.to_json())
|
||||||
for coach in r.get_coaches():
|
for coach in r.get_coaches():
|
||||||
|
if coach.getemailnotifications and not coach.emailbounced:
|
||||||
_ = myqueue(queuehigh, handle_sendemail_breakthrough,
|
_ = myqueue(queuehigh, handle_sendemail_breakthrough,
|
||||||
w.id,
|
w.id,
|
||||||
coach.user.email,
|
coach.user.email,
|
||||||
@@ -1024,6 +1025,7 @@ def checkbreakthrough(w, r):
|
|||||||
r.user.last_name,
|
r.user.last_name,
|
||||||
btvalues=btvalues.to_json())
|
btvalues=btvalues.to_json())
|
||||||
for coach in r.get_coaches():
|
for coach in r.get_coaches():
|
||||||
|
if coach.getemailnotifications and not coach.emailbounced:
|
||||||
_ = myqueue(queuehigh, handle_sendemail_hard,
|
_ = myqueue(queuehigh, handle_sendemail_hard,
|
||||||
w.id,
|
w.id,
|
||||||
coach.user.email,
|
coach.user.email,
|
||||||
|
|||||||
@@ -5783,7 +5783,7 @@ def interactive_flex_chart2(id, r, promember=0,
|
|||||||
workstrokesonly = False
|
workstrokesonly = False
|
||||||
try:
|
try:
|
||||||
_ = rowdata[yparam2]
|
_ = rowdata[yparam2]
|
||||||
except KeyError: # pragma: no cover
|
except (KeyError, TypeError): # pragma: no cover
|
||||||
yparam2 = 'None'
|
yparam2 = 'None'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -326,7 +326,7 @@ def isbreakthrough(delta, cpvalues, p0, p1, p2, p3, ratio):
|
|||||||
cpvalues = cpvalues.values.astype(int)
|
cpvalues = cpvalues.values.astype(int)
|
||||||
pwr = pwr.astype(int)
|
pwr = pwr.astype(int)
|
||||||
|
|
||||||
res = np.sum(cpvalues > pwr)
|
res = np.sum(cpvalues > pwr+1)
|
||||||
res2 = np.sum(cpvalues > pwr2)
|
res2 = np.sum(cpvalues > pwr2)
|
||||||
|
|
||||||
btdf = pd.DataFrame(
|
btdf = pd.DataFrame(
|
||||||
|
|||||||
Reference in New Issue
Block a user