From 91a1837c9923c47256ee1f82600bce059737a3ad Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Wed, 17 Apr 2024 21:56:46 +0200 Subject: [PATCH] Fix 5-teams pools passages Signed-off-by: Emmy D'Anello --- draw/models.py | 10 +++++----- draw/templates/draw/tournament_content.html | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/draw/models.py b/draw/models.py index 116ab69..96b78bf 100644 --- a/draw/models.py +++ b/draw/models.py @@ -378,11 +378,11 @@ class Pool(models.Model): ] elif self.size == 5: table = [ - [0, 3, 2], - [1, 4, 3], - [2, 0, 4], - [3, 1, 0], - [4, 2, 1], + [0, 2, 3], + [1, 3, 4], + [4, 0, 2], + [3, 0, 1], + [4, 1, 2], ] for i, line in enumerate(table): diff --git a/draw/templates/draw/tournament_content.html b/draw/templates/draw/tournament_content.html index 33d0c39..76ca7ea 100644 --- a/draw/templates/draw/tournament_content.html +++ b/draw/templates/draw/tournament_content.html @@ -308,10 +308,9 @@ {% elif forloop.counter == 5 %} Rap - Opp - - Déf + Opp + Déf {% endif %} {% endif %}