forked from ScoDoc/ScoDoc
Fix: calcul evaluations en attente / démissionnaires
This commit is contained in:
parent
40e21f6f0d
commit
69ceb8affc
@ -161,8 +161,10 @@ class ModuleImplResults:
|
|||||||
evals_notes = evals_notes.merge(
|
evals_notes = evals_notes.merge(
|
||||||
eval_df, how="left", left_index=True, right_index=True
|
eval_df, how="left", left_index=True, right_index=True
|
||||||
)
|
)
|
||||||
# Notes en attente: (on prend dans evals_notes pour ne pas avoir les dem.)
|
# Notes en attente: (ne prend en compte que les inscrits, non démissionnaires)
|
||||||
nb_att = sum(evals_notes[str(evaluation.id)] == scu.NOTES_ATTENTE)
|
nb_att = sum(
|
||||||
|
evals_notes[str(evaluation.id)][inscrits_module] == scu.NOTES_ATTENTE
|
||||||
|
)
|
||||||
self.evaluations_etat[evaluation.id] = EvaluationEtat(
|
self.evaluations_etat[evaluation.id] = EvaluationEtat(
|
||||||
evaluation_id=evaluation.id, nb_attente=nb_att, is_complete=is_complete
|
evaluation_id=evaluation.id, nb_attente=nb_att, is_complete=is_complete
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user