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
afbb1fb0e2
commit
f9a9c2088d
@ -256,10 +256,11 @@ class BulletinBUT:
|
|||||||
notes_ok = eval_notes.where(eval_notes > scu.NOTES_ABSENCE).dropna()
|
notes_ok = eval_notes.where(eval_notes > scu.NOTES_ABSENCE).dropna()
|
||||||
modimpls_evals_poids = self.res.modimpls_evals_poids[e.moduleimpl_id]
|
modimpls_evals_poids = self.res.modimpls_evals_poids[e.moduleimpl_id]
|
||||||
try:
|
try:
|
||||||
|
etud_ues_ids = self.res.etud_ues_ids(etud.id)
|
||||||
poids = {
|
poids = {
|
||||||
ue.acronyme: modimpls_evals_poids[ue.id][e.id]
|
ue.acronyme: modimpls_evals_poids[ue.id][e.id]
|
||||||
for ue in self.res.ues
|
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:
|
except KeyError:
|
||||||
poids = collections.defaultdict(lambda: 0.0)
|
poids = collections.defaultdict(lambda: 0.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user