From 695ed2a20da6f594136c678555c7843c3d4dc94a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 27 Nov 2022 19:14:37 +0100 Subject: [PATCH] =?UTF-8?q?Bulletin=20BUT:=20poids=20des=20=C3=A9valuation?= =?UTF-8?q?s=20restreint=20au=20parcours=20de=20l'=C3=A9tudiant.=20Closes?= =?UTF-8?q?=20#524=20(part=202).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/but/bulletin_but.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index af33fac9..a3b3eb89 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -256,10 +256,11 @@ class BulletinBUT: notes_ok = eval_notes.where(eval_notes > scu.NOTES_ABSENCE).dropna() modimpls_evals_poids = self.res.modimpls_evals_poids[e.moduleimpl_id] try: + etud_ues_ids = self.res.etud_ues_ids(etud.id) poids = { ue.acronyme: modimpls_evals_poids[ue.id][e.id] for ue in self.res.ues - if ue.type != UE_SPORT + if (ue.type != UE_SPORT) and (ue.id in etud_ues_ids) } except KeyError: poids = collections.defaultdict(lambda: 0.0)