Private
Public Access
1
0

adding rpe and goldmedalstandard

This commit is contained in:
Sander Roosendaal
2020-12-02 15:17:37 +01:00
parent fe96b619e1
commit c909c401dc
3 changed files with 22 additions and 2 deletions

View File

@@ -1656,7 +1656,7 @@ def getfatigues(
weight = 0
for w in ws:
weight += factor*getattr(w,metricchoice)
if getattr(w,metricchoice) == 0:
if getattr(w,metricchoice) <= 0:
if metricchoice == 'rscore' and w.hrtss != 0:
weight+= factor*w.hrtss
else:
@@ -1866,7 +1866,7 @@ def performance_chart(user,startdate=None,enddate=None,kfitness=42,kfatigue=7,
toolbar_location=None,
toolbar_sticky=False)
plot2.x_range = xrange
plot2.y_range = Range1d(0,df['impulse'].max())