Private
Public Access
1
0

making tests work with powerhr

This commit is contained in:
Sander Roosendaal
2019-07-30 18:14:27 +02:00
parent c663fcad0b
commit 1269a7c7fe
8 changed files with 63228 additions and 63225 deletions

View File

@@ -514,10 +514,10 @@ def statsdata(workouts, options):
}
fieldlist,fielddict = dataprep.getstatsfields()
# prepare data frame
datadf,extracols = dataprep.read_cols_df_sql(ids,fieldlist)
datadf = dataprep.clean_df_stats(datadf,workstrokesonly=workstrokesonly)
# Create stats
@@ -525,6 +525,7 @@ def statsdata(workouts, options):
fielddict.pop('workoutstate')
fielddict.pop('workoutid')
for field,verbosename in fielddict.items():
thedict = {
'mean':datadf[field].mean(),