Fix: Affichage moyenne promo par évaluation sur bulletin

This commit is contained in:
viennet 2020-12-25 12:10:37 +01:00
parent 2b5a470516
commit 6af4c6a2fd
1 changed files with 4 additions and 3 deletions

View File

@ -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"] += " <i>(élective)</i>"
@ -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