fix useless fallback at end of pairing

This commit is contained in:
Maxime Réaux 2026-03-25 12:17:21 +01:00
parent a3144dc3c9
commit ae6c033bbe

View file

@ -329,12 +329,13 @@ class Pairing:
round: Round,
remaining: List[str],
) -> None:
if not remaining:
return
campaign = war.get_campaign_by_round(round.id)
if campaign is None:
raise DomainError("Campaign not found")
match_counts = Pairing.build_match_count(campaign)
available_battles = round.get_battles_with_places()
# FIXME no error when all participants allocated
if not available_battles:
raise DomainError("No available battle remaining")
occupancy = {