forked from ScoDoc/ScoDoc
Fix: affichage notes eval ABS
This commit is contained in:
parent
c2c1c5b5f2
commit
49db8c3c71
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user