From 9b0835789396e6130f9f55877823ba19346caad7 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 16 Mar 2022 15:44:54 +0100 Subject: [PATCH] Fix: poids dans bulletins --- app/but/bulletin_but.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index e4822703..23fd8c58 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -179,7 +179,9 @@ class BulletinBUT: modimpls_evals_poids = self.res.modimpls_evals_poids[e.moduleimpl_id] try: poids = { - ue.acronyme: modimpls_evals_poids[ue.id][e.id] for ue in self.res.ues + ue.acronyme: modimpls_evals_poids[ue.id][e.id] + for ue in self.res.ues + if ue.type != UE_SPORT } except KeyError: poids = collections.defaultdict(lambda: 0.0)