From 6af4c6a2fd86e9b7ac4050f16a7e523ea5efc577 Mon Sep 17 00:00:00 2001 From: viennet Date: Fri, 25 Dec 2020 12:10:37 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Affichage=20moyenne=20promo=20par=20?= =?UTF-8?q?=C3=A9valuation=20sur=20bulletin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sco_bulletins_standard.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sco_bulletins_standard.py b/sco_bulletins_standard.py index dc5af80f..77b9b4ff 100644 --- a/sco_bulletins_standard.py +++ b/sco_bulletins_standard.py @@ -495,7 +495,7 @@ class BulletinGeneratorStandard(sco_bulletins_generator.BulletinGenerator): del t["module"] del t["coef"] t["_pdf_style"].append(("SPAN", (colidx["note"], 0), (-1, 0))) - # t["_module_colspan"] = 3 # non car bug si aucune colonne additionnelle + # t["_module_colspan"] = 3 # non car bug si aucune colonne additionnelle # UE électives if ue["type"] == UE_ELECTIVE: t["module"] += " (élective)" @@ -544,8 +544,7 @@ class BulletinGeneratorStandard(sco_bulletins_generator.BulletinGenerator): rowstyle="", hidden=False, ): - """Liste dans la table les descriptions des modules et, si version != short, des évaluations. - """ + """Liste dans la table les descriptions des modules et, si version != short, des évaluations.""" if ue_type == "cur": # UE courante non prise en compte (car capitalisee) pdf_style_bg = [("BACKGROUND", (0, 0), (-1, 0), self.PDF_UE_CUR_BG)] else: @@ -666,6 +665,8 @@ class BulletinGeneratorStandard(sco_bulletins_generator.BulletinGenerator): ) t["min"] = fmt_note(etat["mini"]) t["max"] = fmt_note(etat["maxi"]) + if prefs["bul_show_moypromo"]: + t["moy"] = fmt_note(etat["moy"]) P.append(t) nbeval += 1 return nbeval