fitness of today not tomorrow
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user