Skip to content

Commit

Permalink
fixtures: Add check for pool completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe2k committed Oct 19, 2024
1 parent 32339e6 commit 17a9036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/tournament/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17a9036

Please sign in to comment.