TSS calculation now always includes rest strokes
This commit is contained in:
@@ -2217,7 +2217,7 @@ def dataprep(rowdatadf, id=0, bands=True, barchart=True, otwpower=True,
|
||||
def workout_trimp(workout):
|
||||
r = workout.user
|
||||
df,row = getrowdata_db(id=workout.id)
|
||||
df = clean_df_stats(df)
|
||||
df = clean_df_stats(df,workstrokesonly=False)
|
||||
if df.empty:
|
||||
df,row = getrowdata_db(id=workout.id)
|
||||
df = clean_df_stats(df,workstrokesonly=False)
|
||||
@@ -2229,7 +2229,7 @@ def workout_trimp(workout):
|
||||
def workout_rscore(w):
|
||||
r = w.user
|
||||
df,row = getrowdata_db(id=w.id)
|
||||
df = clean_df_stats(df)
|
||||
df = clean_df_stats(df,workstrokesonly=False)
|
||||
if df.empty:
|
||||
df,row = getrowdata_db(id=w.id)
|
||||
df = clean_df_stats(df,workstrokesonly=False)
|
||||
@@ -2249,4 +2249,4 @@ def workout_rscore(w):
|
||||
else:
|
||||
tss = 0
|
||||
|
||||
return tss
|
||||
return tss,normp
|
||||
|
||||
Reference in New Issue
Block a user