Fix bold lines in tfjm.org export
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
7a0341e7cf
commit
f687deed14
|
@ -62,8 +62,9 @@ class Command(BaseCommand):
|
|||
self.w("<tbody>")
|
||||
for i, (participation, note) in enumerate(notes):
|
||||
self.w("<tr>")
|
||||
if i < (2 if len(notes) >= 7 else 1):
|
||||
self.w(f"\t<th>{participation.team.name} ({participation.team.trigram})</td>")
|
||||
bold = (not tournament.final and participation.final) or (tournament.final and i < 2)
|
||||
if bold:
|
||||
self.w(f"\t<th>{participation.team.name} ({participation.team.trigram})</th>")
|
||||
else:
|
||||
self.w(f"\t<td>{participation.team.name} ({participation.team.trigram})</td>")
|
||||
for pool in tournament.pools.filter(participations=participation).all():
|
||||
|
|
Loading…
Reference in New Issue