Private
Public Access
1
0

offline background cp chart creation

This commit is contained in:
Sander Roosendaal
2020-10-19 18:23:30 +02:00
parent 3497325a0d
commit f81d934739
3 changed files with 42 additions and 3 deletions

View File

@@ -5035,6 +5035,7 @@ def history_view_data(request,userid=0):
ddict['hrmax'] = ddf['hr'].max().astype(int)
except ValueError:
ddict['hrmax'] = 0
ddict['powermean'] = int(wavg(df,'power','deltat'))
ddict['powermax'] = ddf['power'].max().astype(int)
ddict['nrworkouts'] = a_workouts.count()