From 49db8c3c714305928f300d7d321bcdcde2af496f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 11 Dec 2021 10:56:40 +0100 Subject: [PATCH] Fix: affichage notes eval ABS --- app/but/bulletin_but.py | 2 +- app/scodoc/sco_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index 79e1fa9a..7ee018d2 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -173,7 +173,7 @@ class ResultatsSemestreBUT: def etud_eval_results(self, etud, e) -> dict: "dict resultats d'un étudiant à une évaluation" eval_notes = self.modimpls_evals_notes[e.moduleimpl_id][e.id] # pd.Series - notes_ok = eval_notes.where(eval_notes > -1000).dropna() + notes_ok = eval_notes.where(eval_notes > scu.NOTES_ABSENCE).dropna() d = { "id": e.id, "description": e.description, diff --git a/app/scodoc/sco_utils.py b/app/scodoc/sco_utils.py index c1aeaab0..861e9487 100644 --- a/app/scodoc/sco_utils.py +++ b/app/scodoc/sco_utils.py @@ -162,7 +162,7 @@ def fmt_note(val, note_max=None, keep_numeric=False): """conversion note en str pour affichage dans tables HTML ou PDF. Si keep_numeric, laisse les valeur numeriques telles quelles (pour export Excel) """ - if val is None: + if val is None or val == NOTES_ABSENCE: return "ABS" if val == NOTES_NEUTRALISE: return "EXC" # excuse, note neutralise