Update repartition for 5-teams pools

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-03-24 20:41:37 +01:00
parent bee04b0522
commit e9ae1fcb60
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 9 additions and 9 deletions

View File

@ -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):

View File

@ -284,14 +284,14 @@
{% if forloop.counter == 1 %}
<td class="text-center">Déf</td>
<td></td>
<td class="text-center">Opp</td>
<td class="text-center">Rap</td>
<td class="text-center">Opp</td>
<td></td>
{% elif forloop.counter == 2 %}
<td></td>
<td class="text-center">Déf</td>
<td class="text-center">Rap</td>
<td></td>
<td class="text-center">Rap</td>
<td class="text-center">Opp</td>
{% elif forloop.counter == 3 %}
<td class="text-center">Opp</td>
@ -308,8 +308,8 @@
{% elif forloop.counter == 5 %}
<td></td>
<td class="text-center">Rap</td>
<td></td>
<td class="text-center">Opp</td>
<td>Opp</td>
<td class="text-center"></td>
<td class="text-center">Déf</td>
<td></td>
{% endif %}