1
0
forked from ScoDoc/ScoDoc

Fix: affichage notes eval ABS

This commit is contained in:
Emmanuel Viennet 2021-12-11 10:56:40 +01:00
parent c2c1c5b5f2
commit 49db8c3c71
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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