Private
Public Access
1
0

minimum viable version of improved stats

This commit is contained in:
Sander Roosendaal
2017-05-12 19:10:13 +02:00
parent 50faf1ff1f
commit 3c0157475f
5 changed files with 41 additions and 6 deletions

View File

@@ -3839,6 +3839,7 @@ def cumstats(request,theuser=0,
deltadays=-1,
startdatestring="",
enddatestring="",
plotfield='spm',
options={
'includereststrokes':False,
'workouttypes':['rower','dynamic','slides']
@@ -4010,7 +4011,8 @@ def cumstats(request,theuser=0,
# interactive box plot
datadf['workoutid'].replace(datemapping,inplace=True)
datadf.rename(columns={"workoutid":"date"},inplace=True)
script,div = interactive_boxchart(datadf,'wash')
datadf = datadf.sort_values(['date'])
script,div = interactive_boxchart(datadf,plotfield)
# set options form correctly
initial = {}
@@ -4041,6 +4043,7 @@ def cumstats(request,theuser=0,
'cordict':cordict,
'plotscript':script,
'plotdiv':div,
'plotfield':plotfield,
})
request.session['options'] = options