Fix: poids dans bulletins

This commit is contained in:
Emmanuel Viennet 2022-03-16 15:44:54 +01:00
parent 954aac24f4
commit 9b08357893

View File

@ -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)