display objective awards in participant tables

This commit is contained in:
Maxime Réaux 2026-03-03 15:39:30 +01:00
parent 53b1fc916c
commit f55106c260
8 changed files with 160 additions and 24 deletions

View file

@ -146,7 +146,11 @@ class TieResolver:
scores = ScoreService.compute_scores(war, ContextType.WAR, war.id)
ranking = ResultChecker.get_effective_ranking(
war, ContextType.WAR, war.id, scores
war,
ContextType.WAR,
war.id,
scores,
value_getter=lambda s: s.victory_points,
)
ties: List[TieContext] = []
for _, group, _ in ranking:
@ -191,6 +195,7 @@ class TieResolver:
ContextType.OBJECTIVE,
f"{war.id}:{objective_id}",
scores,
value_getter=lambda s: s.narrative_points.get(objective_id, 0),
)
ties: List[TieContext] = []
for _, group, _ in ranking: