From 3e43495831896cb6e4a792955b8a6ac52e0416ad Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 7 May 2024 18:17:13 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20bulletins=20pdf,=20notes=20=C3=A9valuati?= =?UTF-8?q?ons=20sans=20notes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/but/bulletin_but_pdf.py | 7 +++---- sco_version.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/but/bulletin_but_pdf.py b/app/but/bulletin_but_pdf.py index ef1f1e41..f849cebc 100644 --- a/app/but/bulletin_but_pdf.py +++ b/app/but/bulletin_but_pdf.py @@ -427,12 +427,11 @@ class BulletinGeneratorStandardBUT(BulletinGeneratorStandard): if e["evaluation_type"] == Evaluation.EVALUATION_NORMALE else "*" ) + note_value = e["note"].get("value", "") t = { "titre": f"{e['description'] or ''}", - "moyenne": e["note"]["value"], - "_moyenne_pdf": Paragraph( - f"""{e["note"]["value"]}""" - ), + "moyenne": note_value, + "_moyenne_pdf": Paragraph(f"""{note_value}"""), "coef": coef, "_coef_pdf": Paragraph( f"""{ diff --git a/sco_version.py b/sco_version.py index 0a661492..16ddaebd 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.964" +SCOVERSION = "9.6.965" SCONAME = "ScoDoc"