Private
Public Access
1
0

force curve comparison

This commit is contained in:
Sander Roosendaal
2022-10-26 23:49:28 +02:00
parent cb8aeb1cf6
commit 7ebdf21c25
10 changed files with 590 additions and 27 deletions

View File

@@ -4992,3 +4992,25 @@ class InStrokeAnalysis(models.Model):
date = self.date)
return s
class ForceCurveAnalysis(models.Model):
workout = models.ForeignKey(Workout, on_delete=models.CASCADE)
rower = models.ForeignKey(Rower, on_delete=models.SET_NULL, null=True)
name = models.CharField(max_length=150, blank=True, null=True)
date = models.DateField(blank=True, null=True)
notes = models.TextField(blank=True)
dist_min = models.IntegerField(default=0)
dist_max = models.IntegerField(default=3600)
spm_min = models.FloatField(default=15)
spm_max = models.FloatField(default=55)
work_min = models.IntegerField(default=0)
work_max = models.IntegerField(default=1500)
average_spm = models.FloatField(default=23)
average_boatspeed = models.FloatField(default=4.0)
include_rest_strokes = models.BooleanField(default=False)
def __str__(self):
s = 'Force Curve Analysis {name} ({date})'.format(name = self.name,
date = self.date)
return s