forked from ScoDoc/ScoDoc
Bulletin BUT: poids des évaluations restreint au parcours de l'étudiant. Closes #524 (part 2).
This commit is contained in:
parent
c29e9fc5bc
commit
695ed2a20d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user