Private
Public Access
1
0

slightly faster - initial load still slow

This commit is contained in:
Sander Roosendaal
2021-01-05 08:07:39 +01:00
parent cb4c2ae0dd
commit 64b9a372f8
2 changed files with 22 additions and 11 deletions

View File

@@ -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