From 13c4c834d41fd28984e70da42c85c51572fff2a7 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 10 Apr 2021 14:38:15 +0200 Subject: [PATCH] Round notes to one decimal --- .../participation/passage_detail.html | 18 +++++++++--------- .../templates/participation/pool_detail.html | 2 +- .../participation/tournament_detail.html | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/participation/templates/participation/passage_detail.html b/apps/participation/templates/participation/passage_detail.html index de1287e..bd2a15e 100644 --- a/apps/participation/templates/participation/passage_detail.html +++ b/apps/participation/templates/participation/passage_detail.html @@ -66,35 +66,35 @@
{% trans "Average points for the defender writing:" %}
-
{{ passage.average_defender_writing }}/20
+
{{ passage.average_defender_writing|floatformat }}/20
{% trans "Average points for the defender oral:" %}
-
{{ passage.average_defender_oral }}/16
+
{{ passage.average_defender_oral|floatformat }}/16
{% trans "Average points for the opponent writing:" %}
-
{{ passage.average_opponent_writing }}/9
+
{{ passage.average_opponent_writing|floatformat }}/9
{% trans "Average points for the opponent oral:" %}
-
{{ passage.average_opponent_oral }}/10
+
{{ passage.average_opponent_oral|floatformat }}/10
{% trans "Average points for the reporter writing:" %}
-
{{ passage.average_reporter_writing }}/9
+
{{ passage.average_reporter_writing|floatformat }}/9
{% trans "Average points for the reporter oral:" %}
-
{{ passage.average_reporter_oral }}/10
+
{{ passage.average_reporter_oral|floatformat }}/10

{% trans "Defender points:" %}
-
{{ passage.average_defender }}/52
+
{{ passage.average_defender|floatformat }}/52
{% trans "Opponent points:" %}
-
{{ passage.average_opponent }}/29
+
{{ passage.average_opponent|floatformat }}/29
{% trans "Reporter points:" %}
-
{{ passage.average_reporter }}/19
+
{{ passage.average_reporter|floatformat }}/19
diff --git a/apps/participation/templates/participation/pool_detail.html b/apps/participation/templates/participation/pool_detail.html index 126fce6..7f5662d 100644 --- a/apps/participation/templates/participation/pool_detail.html +++ b/apps/participation/templates/participation/pool_detail.html @@ -43,7 +43,7 @@
diff --git a/apps/participation/templates/participation/tournament_detail.html b/apps/participation/templates/participation/tournament_detail.html index b53c57e..e7429ad 100644 --- a/apps/participation/templates/participation/tournament_detail.html +++ b/apps/participation/templates/participation/tournament_detail.html @@ -96,7 +96,7 @@