Skip to content

Commit

Permalink
Merge pull request #632 from aiarena/fix/round-ordering-on-start-new-…
Browse files Browse the repository at this point in the history
…match

Fix round ordering on start new match
  • Loading branch information
lladdy authored Oct 12, 2023
2 parents 5aa5d10 + e70b213 commit 450c771
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aiarena/core/api/matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,10 @@ def start_next_match_for_competition(requesting_ac: ArenaClient, competition: Co
WHERE
competition_id=%s
AND finished IS NULL
AND cm.started IS NULL
ORDER BY NUMBER
) for update""", (competition.id,))
AND cm.started IS NULL
)
ORDER BY number asc
for update""", (competition.id,))

for round in rounds:
match = Matches._attempt_to_start_a_ladder_match(requesting_ac, round)
Expand Down

0 comments on commit 450c771

Please sign in to comment.