From e9ae1fcb601ee4eb6ceb94f2013c56688f1bd742 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 24 Mar 2024 20:41:37 +0100 Subject: [PATCH] Update repartition for 5-teams pools Signed-off-by: Emmy D'Anello --- draw/models.py | 10 +++++----- draw/templates/draw/tournament_content.html | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/draw/models.py b/draw/models.py index 7737f78..d53cc20 100644 --- a/draw/models.py +++ b/draw/models.py @@ -376,11 +376,11 @@ class Pool(models.Model): ] elif self.size == 5: table = [ - [0, 2, 3], - [1, 3, 4], - [2, 0, 1], - [3, 4, 0], - [4, 1, 2], + [0, 3, 2], + [1, 4, 3], + [2, 0, 4], + [3, 1, 0], + [4, 2, 1], ] for i, line in enumerate(table): diff --git a/draw/templates/draw/tournament_content.html b/draw/templates/draw/tournament_content.html index 62d462a..33d0c39 100644 --- a/draw/templates/draw/tournament_content.html +++ b/draw/templates/draw/tournament_content.html @@ -284,14 +284,14 @@ {% if forloop.counter == 1 %} Déf - Opp Rap + Opp {% elif forloop.counter == 2 %} Déf - Rap + Rap Opp {% elif forloop.counter == 3 %} Opp @@ -308,8 +308,8 @@ {% elif forloop.counter == 5 %} Rap - - Opp + Opp + Déf {% endif %}