1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 06:22:22 +00:00

Fix bold lines in tfjm.org export

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-05-19 20:55:47 +02:00
parent 7a0341e7cf
commit f687deed14
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -62,8 +62,9 @@ class Command(BaseCommand):
self.w("<tbody>") self.w("<tbody>")
for i, (participation, note) in enumerate(notes): for i, (participation, note) in enumerate(notes):
self.w("<tr>") self.w("<tr>")
if i < (2 if len(notes) >= 7 else 1): bold = (not tournament.final and participation.final) or (tournament.final and i < 2)
self.w(f"\t<th>{participation.team.name} ({participation.team.trigram})</td>") if bold:
self.w(f"\t<th>{participation.team.name} ({participation.team.trigram})</th>")
else: else:
self.w(f"\t<td>{participation.team.name} ({participation.team.trigram})</td>") self.w(f"\t<td>{participation.team.name} ({participation.team.trigram})</td>")
for pool in tournament.pools.filter(participations=participation).all(): for pool in tournament.pools.filter(participations=participation).all():