1
0
forked from ScoDoc/ScoDoc

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] modimpls_evals_poids = self.res.modimpls_evals_poids[e.moduleimpl_id]
try: try:
poids = { 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: except KeyError:
poids = collections.defaultdict(lambda: 0.0) poids = collections.defaultdict(lambda: 0.0)