From 9c817151391885846bd424f11466f2c5f6a24a5e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 30 Jun 2022 15:43:48 +0200 Subject: [PATCH] =?UTF-8?q?Bul.=20BUT=20JSON:=20decisions=20jury=20selon?= =?UTF-8?q?=20option=20"Faire=20figurer=20les=20d=C3=A9cisions=20sur=20les?= =?UTF-8?q?=20bulletins"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/but/bulletin_but.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index 2e9ee0a80..3b90187b9 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"] = {