Add column to intensity
This commit is contained in:
parent
f3de4996b8
commit
d56b2e770d
|
@ -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
|
||||
|
|
|
@ -32,10 +32,11 @@
|
|||
<th style="width: 6%" class="header text-center">Diff</th>
|
||||
<th style="width: 6%" class="header text-center"># skill</th>
|
||||
<th style="width: 8%" class="header text-center"># passes</th>
|
||||
<th style="width: 10%" class="header text-left">mean d./passe</th>
|
||||
<th style="width: 8%" class="header text-center">mean T/p</th>
|
||||
<th style="width: 10%" class="header text-left">mean D/p</th>
|
||||
<th style="width: 8%" class="header">mean # skill</th>
|
||||
<th style="width: 10%" class="header text-center"># skill/passe</th>
|
||||
<th style="width: 10%" class="header text-center">mean d./skill</th>
|
||||
<th style="width: 10%" class="header text-center"># skill/p</th>
|
||||
<th style="width: 10%" class="header text-center">mean D/skill</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -56,6 +57,7 @@
|
|||
<td class="text-right">{{ intensity.difficulty_in_unit }}</td>
|
||||
<td class="text-right">{{ intensity.quantity_of_skill }}</td>
|
||||
<td class="text-right">{{ intensity.number_of_passes }}</td>
|
||||
<td class="text-right">{{ intensity.mean_time_by_passe | floatformat:2 }}</td>
|
||||
<td class="text-right">{{ intensity.mean_difficulty_by_passe | floatformat:2 }}</td>
|
||||
<td class="text-right">{{ intensity.mean_quantity_of_skill | floatformat:2 }}</td>
|
||||
<td class="text-right">{{ intensity.quantity_of_skill_by_passe | floatformat:2 }}</td>
|
||||
|
|
Loading…
Reference in New Issue