From f687deed144edfb85d7d22e2be701519a414b7f7 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 19 May 2024 20:55:47 +0200 Subject: [PATCH] Fix bold lines in tfjm.org export Signed-off-by: Emmy D'Anello --- participation/management/commands/export_results.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/participation/management/commands/export_results.py b/participation/management/commands/export_results.py index 8cdc114..a86340a 100644 --- a/participation/management/commands/export_results.py +++ b/participation/management/commands/export_results.py @@ -62,8 +62,9 @@ class Command(BaseCommand): self.w("") for i, (participation, note) in enumerate(notes): self.w("") - if i < (2 if len(notes) >= 7 else 1): - self.w(f"\t{participation.team.name} ({participation.team.trigram})") + bold = (not tournament.final and participation.final) or (tournament.final and i < 2) + if bold: + self.w(f"\t{participation.team.name} ({participation.team.trigram})") else: self.w(f"\t{participation.team.name} ({participation.team.trigram})") for pool in tournament.pools.filter(participations=participation).all():