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

@@ -2904,6 +2904,15 @@ class Workout(models.Model):
privacychoices = mytypes.privacychoices
adaptivetypes = mytypes.adaptivetypes
boatbrands = mytypes.boatbrands
rpechoices = (
(1,'Very Easy (reading a book, watching television)'), # 20 TSS / hour
(2,'Easy (talk, breathe normally, feels comfortable)'), # 30 TSS / hour
(4,'Moderate (talk in short spurts, breathing more labored, in comfort zone but working)'), # 50 TSS/hour
(6,'Somewhat Hard'), # 70 TSS / hour
(8,'Hard (could barely talk, breathing heavily)'), # 100 TSS / hour
(9,'Very Hard (outside comfort zone)'), # 120 TSS / hour
(10,'Max Effort (could barely remember your name)') # 140 TSS / hour
)
user = models.ForeignKey(Rower,on_delete=models.CASCADE)
team = models.ManyToManyField(Team,blank=True)
@@ -2931,12 +2940,18 @@ class Workout(models.Model):
distance = models.IntegerField(default=0,blank=True)
duration = models.TimeField(blank=True)
dragfactor = models.IntegerField(default=0,blank=True)
# scores
trimp = models.IntegerField(default=-1,blank=True)
rscore = models.IntegerField(default=-1,blank=True)
hrtss = models.IntegerField(default=-1,blank=True)
normp = models.IntegerField(default=-1,blank=True)
normv = models.FloatField(default=-1,blank=True)
normw = models.FloatField(default=-1,blank=True)
goldmedalstandard = models.FloatField(default=-1,blank=True)
rpe = models.IntegerField(default=0,blank=True,choices=rpechoices,
verbose_name='Rate of Perceived Exertion')
weightcategory = models.CharField(
default="hwt",
max_length=10,
@@ -3546,6 +3561,7 @@ class WorkoutForm(ModelForm):
'dragfactor',
'weightcategory',
'adaptiveclass',
'rpe',
'notes',
'rankingpiece',
'duplicate',