From 0aa401b043c260b06c64d83a6d3382fe2cd3e5c9 Mon Sep 17 00:00:00 2001 From: Jonathan Samuel Date: Sat, 19 Oct 2024 12:01:51 +0530 Subject: [PATCH] fixtures: Add check for pool completion --- server/tournament/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/tournament/utils.py b/server/tournament/utils.py index a2ac5a06..7417c85d 100644 --- a/server/tournament/utils.py +++ b/server/tournament/utils.py @@ -458,7 +458,10 @@ def populate_fixtures(tournament_id: int) -> None: if cross_pool_matches_not_completed.count() > 0: is_this_position_pool_seeds_cross_pool_matches_complete = False - if is_this_position_pool_seeds_cross_pool_matches_complete: + if ( + is_this_position_pool_seeds_cross_pool_matches_complete + and is_all_pool_matches_complete + ): if ( position_pool.initial_seeding[next(iter(position_pool.initial_seeding.keys()))] == 0