diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index af33fac9c..a3b3eb897 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)