From aa75a5b84fab13dae3ed1141714929e8693da0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20R=C3=A9aux?= Date: Wed, 18 Mar 2026 10:48:29 +0100 Subject: [PATCH] avoid choic tiebreak when sector places are enough for remaining active tied participants --- src/warchron/model/pairing.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/warchron/model/pairing.py b/src/warchron/model/pairing.py index 24e77f9..a6dcabd 100644 --- a/src/warchron/model/pairing.py +++ b/src/warchron/model/pairing.py @@ -203,8 +203,6 @@ class Pairing: active = TieResolver.get_active_participants( war, context, context.participants ) - if len(active) <= 1: - break current_context = TieContext( context_type=context.context_type, context_id=context.context_id, @@ -213,9 +211,12 @@ class Pairing: score_kind=context.score_kind, sector_id=context.sector_id, ) - # natural or unbreakable draw - if not TieResolver.can_tie_be_resolved( - war, context, current_context.participants + # natural, unbreakable or acceptable (enough places) draw + if ( + not TieResolver.can_tie_be_resolved( + war, context, current_context.participants + ) + or len(active) <= places ): war.events.append( TieResolved(