1
0
Fork 0

Fix: affichage moyenne UE bonus si inscrit mais sans note: - et non None

This commit is contained in:
Emmanuel Viennet 2023-07-13 18:54:51 +02:00
parent 2c93c35aa7
commit c933f010d4
1 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,9 @@ class BulletinGeneratorStandardBUT(BulletinGeneratorStandard):
moy_ue = moy_ue.get("value", "-") if moy_ue is not None else "-"
t = {
"titre": f"{ue_acronym} - {ue['titre']}",
"moyenne": Paragraph(f"""<para align=right><b>{moy_ue}</b></para>"""),
"moyenne": Paragraph(
f"""<para align=right><b>{moy_ue or "-"}</b></para>"""
),
"_css_row_class": "note_bold",
"_pdf_row_markup": ["b"],
"_pdf_style": [