minimum viable version of improved stats
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user