unrestricting planned session api
This commit is contained in:
@@ -458,7 +458,7 @@ def calculate_goldmedalstandard(rower, workout, recurrance=True):
|
||||
if settings.TESTING:
|
||||
background = False
|
||||
if recurrance:
|
||||
df, delta, cpvalues = setcp(workout, background=background)
|
||||
df, delta, cpvalues, cpvalues_spm = setcp(workout, background=background)
|
||||
if df.is_empty():
|
||||
return 0, 0
|
||||
else:
|
||||
@@ -466,7 +466,7 @@ def calculate_goldmedalstandard(rower, workout, recurrance=True):
|
||||
|
||||
|
||||
if df.is_empty() and recurrance: # pragma: no cover
|
||||
df, delta, cpvalues = setcp(workout, recurrance=False, background=True)
|
||||
df, delta, cpvalues, cpvalues_spm = setcp(workout, recurrance=False, background=True)
|
||||
if df.is_empty():
|
||||
return 0, 0
|
||||
|
||||
@@ -818,7 +818,7 @@ def update_rolling_cp(r, types, mode='water', dosend=False):
|
||||
user=r
|
||||
)
|
||||
|
||||
delta, cp, avgpower, workoutnames, urls = fetchcp_new(r, workouts)
|
||||
delta, cp, cr, avgpower, workoutnames, urls = fetchcp_new(r, workouts)
|
||||
|
||||
powerdf = pl.DataFrame({
|
||||
'Delta': delta,
|
||||
@@ -1071,7 +1071,7 @@ def checkbreakthrough(w, r):
|
||||
ishard = False
|
||||
workouttype = w.workouttype
|
||||
if workouttype in rowtypes:
|
||||
cpdf, delta, cpvalues = setcp(w)
|
||||
cpdf, delta, cpvalues, cpvalues_spm = setcp(w)
|
||||
if not cpdf.is_empty():
|
||||
if workouttype in otwtypes:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user