Private
Public Access
1
0

fitness of today not tomorrow

This commit is contained in:
Sander Roosendaal
2021-01-10 16:11:32 +01:00
parent a7f4f7b404
commit c54bc38866
3 changed files with 16 additions and 26 deletions

View File

@@ -1053,7 +1053,7 @@ def runcpupdate(
theids = [w.id for w in theworkouts]
job = myqueue(
queue,
queuelow,
handle_updatecp,
rower.id,
theids,
@@ -1067,7 +1067,7 @@ def fetchcperg(rower,theworkouts):
cpdf = getcpdata_sql(rower.id,table='ergcpdata')
job = myqueue(
queue,
queuelow,
handle_updateergcp,
rower.id,
thefilenames)
@@ -1388,7 +1388,7 @@ def fetchcp(rower,theworkouts,table='cpdata'):
if not cpdf.empty:
return cpdf['delta'],cpdf['cp'],avgpower2
else:
job = myqueue(queue,
job = myqueue(queuelow,
handle_updatecp,
rower.id,
theids,

View File

@@ -2041,8 +2041,8 @@ def performance_chart(user,startdate=None,enddate=None,kfitness=42,kfatigue=7,
})
endfitness = fitnesses[-1]
endfatigue = fatigues[-1]
endfitness = fitnesses[-2]
endfatigue = fatigues[-2]
endform = endfitness-endfatigue
if modelchoice == 'banister':

View File

@@ -1676,7 +1676,7 @@ def performancemanager_view(request,userid=0,mode='rower',
'dofatigue':dofatigue,
})
if not is_ajax:
script, thediv, endfitness, endfatigue, endform, ids = performance_chart(
theuser,startdate=startdate,enddate=enddate,
kfitness = kfitness,
@@ -1686,16 +1686,6 @@ def performancemanager_view(request,userid=0,mode='rower',
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