From 17a90361158f9be4c0ae70ac9b751b10252a5e33 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