adding rpe editing
This commit is contained in:
@@ -3421,7 +3421,22 @@ class PlannedSessionFormSmall(ModelForm):
|
||||
boattypes = mytypes.boattypes
|
||||
|
||||
# Workout
|
||||
|
||||
rpechoices = (
|
||||
(0, 'Not Specified'),
|
||||
(1, '1 Very Easy (a walk in the park)'), # 20 TSS / hour
|
||||
(2, '2 Easy (You breathe normally, it feels comfortable)'), # 30 TSS / hour
|
||||
(3, '3 Somewhat easy (You can talk easily but did you notice the beautiful clouds?)'),
|
||||
# 50 TSS/hour
|
||||
(4, '4 Moderate (You can talk in short spurts, breathing more labored, this feels just right)'),
|
||||
(5, "5 (It's not that painful, you just don't want to be here all day.)"),
|
||||
(6, '6 Somewhat Hard (You can say a few words if you need to)'), # 70 TSS / hour
|
||||
(7, '7 Vigorous (This is starting to get painful)'),
|
||||
# 100 TSS / hour
|
||||
(8, "8 Hard (You can barely talk, breathing heavily, hoping you won't have to this that long)"),
|
||||
(9, '9 Very Hard (My goodness, please make it stop)'), # 120 TSS / hour
|
||||
# 140 TSS / hour
|
||||
(10, '10 Max Effort (You can barely remember your name, you would rather rip out your toenails than go through this)')
|
||||
)
|
||||
|
||||
class Workout(models.Model):
|
||||
workouttypes = mytypes.workouttypes
|
||||
@@ -3429,22 +3444,7 @@ class Workout(models.Model):
|
||||
privacychoices = mytypes.privacychoices
|
||||
adaptivetypes = mytypes.adaptivetypes
|
||||
boatbrands = mytypes.boatbrands
|
||||
rpechoices = (
|
||||
(0, 'Not Specified'),
|
||||
(1, '1 Very Easy (a walk in the park)'), # 20 TSS / hour
|
||||
(2, '2 Easy (You breathe normally, it feels comfortable)'), # 30 TSS / hour
|
||||
(3, '3 Somewhat easy (You can talk easily but did you notice the beautiful clouds?)'),
|
||||
# 50 TSS/hour
|
||||
(4, '4 Moderate (You can talk in short spurts, breathing more labored, this feels just right)'),
|
||||
(5, "5 (It's not that painful, you just don't want to be here all day.)"),
|
||||
(6, '6 Somewhat Hard (You can say a few words if you need to)'), # 70 TSS / hour
|
||||
(7, '7 Vigorous (This is starting to get painful)'),
|
||||
# 100 TSS / hour
|
||||
(8, "8 Hard (You can barely talk, breathing heavily, hoping you won't have to this that long)"),
|
||||
(9, '9 Very Hard (My goodness, please make it stop)'), # 120 TSS / hour
|
||||
# 140 TSS / hour
|
||||
(10, '10 Max Effort (You can barely remember your name, you would rather rip out your toenails than go through this)')
|
||||
)
|
||||
|
||||
|
||||
user = models.ForeignKey(Rower, on_delete=models.CASCADE)
|
||||
team = models.ManyToManyField(Team, blank=True)
|
||||
@@ -3586,7 +3586,11 @@ class Workout(models.Model):
|
||||
|
||||
return stri
|
||||
|
||||
|
||||
class WorkoutRPEForm(ModelForm):
|
||||
class Meta:
|
||||
model = Workout
|
||||
fields = ['rpe']
|
||||
|
||||
class TombStone(models.Model):
|
||||
user = models.ForeignKey(Rower, on_delete=models.CASCADE)
|
||||
uploadedtoc2 = models.IntegerField(default=0)
|
||||
|
||||
Reference in New Issue
Block a user