From c933f010d4a2256569b4f8b41b9a1f6b70f90a96 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 13 Jul 2023 18:54:51 +0200 Subject: [PATCH] Fix: affichage moyenne UE bonus si inscrit mais sans note: - et non None --- app/but/bulletin_but_pdf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/but/bulletin_but_pdf.py b/app/but/bulletin_but_pdf.py index 0aa22fcfe..0d5b6b2df 100644 --- a/app/but/bulletin_but_pdf.py +++ b/app/but/bulletin_but_pdf.py @@ -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"""{moy_ue}"""), + "moyenne": Paragraph( + f"""{moy_ue or "-"}""" + ), "_css_row_class": "note_bold", "_pdf_row_markup": ["b"], "_pdf_style": [