membershipworks: Round durations in event reports to two digits

This commit is contained in:
Adam Goldsmith 2024-01-22 00:54:47 -05:00
parent c489c492b2
commit 8155402dbb
3 changed files with 6 additions and 6 deletions

View File

@ -32,8 +32,8 @@
<td>{{ year.count__sum }}</td>
<td>{{ year.instructor__count }}</td>
<td>{{ year.meeting_times__count__sum }}</td>
<td>{{ year.duration__sum|duration_as_hours }}</td>
<td>{{ year.person_hours__sum|duration_as_hours }}</td>
<td>{{ year.duration__sum|duration_as_hours|floatformat:-2 }}</td>
<td>{{ year.person_hours__sum|duration_as_hours|floatformat:-2 }}</td>
</tr>
{% endfor %}
</tbody>

View File

@ -38,8 +38,8 @@
<td>{{ event.count }}</td>
<td>{{ event.cap }}</td>
<td>{{ event.meeting_times__count }}</td>
<td>{{ event.duration|duration_as_hours }}</td>
<td>{{ event.person_hours|duration_as_hours }}</td>
<td>{{ event.duration|duration_as_hours|floatformat:-2 }}</td>
<td>{{ event.person_hours|duration_as_hours|floatformat:-2 }}</td>
</tr>
{% endfor %}
</tbody>

View File

@ -33,8 +33,8 @@
<td>{{ month.count__sum }}</td>
<td>{{ month.instructor__count }}</td>
<td>{{ month.meeting_times__count__sum }}</td>
<td>{{ month.duration__sum|duration_as_hours }}</td>
<td>{{ month.person_hours__sum|duration_as_hours }}</td>
<td>{{ month.duration__sum|duration_as_hours|floatformat:-2 }}</td>
<td>{{ month.person_hours__sum|duration_as_hours|floatformat:-2 }}</td>
</tr>
{% endfor %}
</tbody>