1
0
forked from ScoDoc/ScoDoc

Fix: bulletins pdf, notes évaluations sans notes.

This commit is contained in:
Emmanuel Viennet 2024-05-07 18:17:13 +02:00
parent 18b1f00586
commit 3e43495831
2 changed files with 4 additions and 5 deletions

View File

@ -427,12 +427,11 @@ class BulletinGeneratorStandardBUT(BulletinGeneratorStandard):
if e["evaluation_type"] == Evaluation.EVALUATION_NORMALE if e["evaluation_type"] == Evaluation.EVALUATION_NORMALE
else "*" else "*"
) )
note_value = e["note"].get("value", "")
t = { t = {
"titre": f"{e['description'] or ''}", "titre": f"{e['description'] or ''}",
"moyenne": e["note"]["value"], "moyenne": note_value,
"_moyenne_pdf": Paragraph( "_moyenne_pdf": Paragraph(f"""<para align=right>{note_value}</para>"""),
f"""<para align=right>{e["note"]["value"]}</para>"""
),
"coef": coef, "coef": coef,
"_coef_pdf": Paragraph( "_coef_pdf": Paragraph(
f"""<para align=right fontSize={self.small_fontsize}><i>{ f"""<para align=right fontSize={self.small_fontsize}><i>{

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.6.964" SCOVERSION = "9.6.965"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"