slightly faster - initial load still slow
This commit is contained in:
@@ -1652,15 +1652,26 @@ def performancemanager_view(request,userid=0,mode='rower',
|
||||
'dofatigue':dofatigue,
|
||||
})
|
||||
|
||||
script, thediv, endfitness, endfatigue, endform, ids = performance_chart(
|
||||
theuser,startdate=startdate,enddate=enddate,
|
||||
kfitness = kfitness,
|
||||
kfatigue = kfatigue,
|
||||
metricchoice = metricchoice,
|
||||
doform = doform,
|
||||
dofatigue = dofatigue,
|
||||
showtests = True,
|
||||
)
|
||||
if not is_ajax:
|
||||
script, thediv, endfitness, endfatigue, endform, ids = performance_chart(
|
||||
theuser,startdate=startdate,enddate=enddate,
|
||||
kfitness = kfitness,
|
||||
kfatigue = kfatigue,
|
||||
metricchoice = metricchoice,
|
||||
doform = doform,
|
||||
dofatigue = dofatigue,
|
||||
showtests = True,
|
||||
)
|
||||
else:
|
||||
script, thediv, endfitness, endfatigue, endform, ids = performance_chart(
|
||||
theuser,startdate=startdate,enddate=enddate,
|
||||
kfitness = kfitness,
|
||||
kfatigue = kfatigue,
|
||||
metricchoice = metricchoice,
|
||||
doform = doform,
|
||||
dofatigue = dofatigue,
|
||||
showtests = False,
|
||||
)
|
||||
|
||||
ids = pd.Series(ids).dropna().values
|
||||
|
||||
|
||||
Reference in New Issue
Block a user