diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index 2e9ee0a809..3b90187b91 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -324,10 +324,13 @@ class BulletinBUT: ects_tot = sum([ue.ects or 0 for ue in res.ues]) if res.ues else 0.0 ects_acquis = sum([d.get("ects", 0) for d in decisions_ues.values()]) semestre_infos["ECTS"] = {"acquis": ects_acquis, "total": ects_tot} - semestre_infos.update( - sco_bulletins_json.dict_decision_jury(etud.id, formsemestre.id) - ) - semestre_infos.update(but_validations.dict_decision_jury(etud, formsemestre)) + if sco_preferences.get_preference("bul_show_decision", formsemestre.id): + semestre_infos.update( + sco_bulletins_json.dict_decision_jury(etud.id, formsemestre.id) + ) + semestre_infos.update( + but_validations.dict_decision_jury(etud, formsemestre) + ) if etat_inscription == scu.INSCRIT: # moyenne des moyennes générales du semestre semestre_infos["notes"] = {