From 69ceb8affcaef799cd901c064917bf02ed954a88 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 26 Jun 2022 14:29:57 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20calcul=20evaluations=20en=20attente=20/?= =?UTF-8?q?=20d=C3=A9missionnaires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comp/moy_mod.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/comp/moy_mod.py b/app/comp/moy_mod.py index 8f8bd1a89..c63394ca9 100644 --- a/app/comp/moy_mod.py +++ b/app/comp/moy_mod.py @@ -161,8 +161,10 @@ class ModuleImplResults: evals_notes = evals_notes.merge( eval_df, how="left", left_index=True, right_index=True ) - # Notes en attente: (on prend dans evals_notes pour ne pas avoir les dem.) - nb_att = sum(evals_notes[str(evaluation.id)] == scu.NOTES_ATTENTE) + # Notes en attente: (ne prend en compte que les inscrits, non démissionnaires) + nb_att = sum( + evals_notes[str(evaluation.id)][inscrits_module] == scu.NOTES_ATTENTE + ) self.evaluations_etat[evaluation.id] = EvaluationEtat( evaluation_id=evaluation.id, nb_attente=nb_att, is_complete=is_complete )