diff --git a/jarvis/followup/models.py b/jarvis/followup/models.py index c933eda..e5440c7 100644 --- a/jarvis/followup/models.py +++ b/jarvis/followup/models.py @@ -575,6 +575,10 @@ class Intensity(Markdownizable, Seasonisable): def __str__(self): return f"{self.gymnast} - {self.date} : {self.time} - {self.difficulty} - {self.quantity_of_skill} - {self.number_of_passes}" + @property + def mean_time_by_passe(self): + return self.time / self.number_of_passes + @property def difficulty_in_unit(self): return self.difficulty / 10 diff --git a/jarvis/followup/templates/intensities/list.html b/jarvis/followup/templates/intensities/list.html index 8d718e0..c38daf7 100644 --- a/jarvis/followup/templates/intensities/list.html +++ b/jarvis/followup/templates/intensities/list.html @@ -32,10 +32,11 @@