1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 01:58:23 +02:00
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-03-26 21:18:03 +01:00
parent 4ea70e5ab9
commit 8777c562dd
5 changed files with 6 additions and 12 deletions

View File

@ -447,10 +447,8 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
td2.passage_index = current_passage_index
if len(round2_pools) == 1 and len(tds) == 5:
# Exchange teams 1 and 5 if there is only one pool with 5 teams
if i == 0:
td2.passage_index = 4
elif i == 4:
td2.passage_index = 0
if i == 0 or i == 4:
td2.passage_index = 4 - i
current_passage_index += 1
await td2.asave()