Update periodical report

This commit is contained in:
Gregory Trullemans 2023-12-03 18:34:29 +01:00
parent 5cb5517614
commit 2e22b04643
2 changed files with 12 additions and 10 deletions

View File

@ -119,7 +119,7 @@
{% endif %}
</table>
{% else %}
No information for selected week.
No information encoded for selected week.
{% endif %}
</div>
<div class="col-4">
@ -160,11 +160,11 @@
</tbody>
</table>
{% else %}
No intensty for the selected period.
No intensty encoded for the selected period.
{% endif %}
</div>
<div class="col-12">
<h4 class="mb-1">Intensity</h4>
<h4 class="mb-1">Injury</h4>
{% if injuries_list %}
<table class="table" id="injury_table">
<thead class="text-primary">
@ -205,7 +205,7 @@
</tbody>
</table>
{% else %}
<p class="muted-text">There are no injury for the selected period.</p>
<p class="muted-text">There are no injury encoded for the selected period.</p>
{% endif %}
</div>
</div>
@ -278,7 +278,7 @@
{% endif %}
</table>
{% else %}
No chrono/ToF for the selected period.
No chrono/ToF encoded for the selected period.
{% endif %}
</div>
@ -352,7 +352,7 @@
{% endif %}
</table>
{% else %}
No scores during for the selected period.
No scores encoded for the selected period.
{% endif %}
</div>
</div>
@ -389,7 +389,7 @@
{% endfor %}
</table>
{% else %}
No objective for the selected period.
No objective reached for the selected period.
{% endif %}
</div>
</div>
@ -408,7 +408,7 @@
{% endfor %}
</table>
{% else %}
No events on the selected period.
No events encoded on the selected period.
{% endif %}
</div>
</div>
@ -421,7 +421,7 @@
{{ note.to_markdown | safe }}
{% endfor %}
{% else %}
No note for the selected period.
No note encoded for the selected period.
{% endif %}
</div>
</div>

View File

@ -1003,7 +1003,9 @@ def generate_report_for_period(
max_number_of_passes_value=Max("number_of_passes"),
)
injury_list = gymnast.injuries.filter(date__gte=date_begin, date__lte=date_end)
injury_list = gymnast.injuries.filter(
date__gte=date_begin, date__lte=date_end
).order_by("date")
# BEST TOF
number_of_tof_straightjump = Chrono.objects.filter(