diff --git a/app/scodoc/sco_evaluations.py b/app/scodoc/sco_evaluations.py index e932ef98a..3fdef7e00 100644 --- a/app/scodoc/sco_evaluations.py +++ b/app/scodoc/sco_evaluations.py @@ -72,16 +72,12 @@ def notes_moyenne_median_mini_maxi(notes): n = len(notes_num) if not n: # Aucune note numérique - # si elles sont toutes EXC, renvoie EXC - if all(x == scu.NOTES_NEUTRALISE for x in notes): - return ( - scu.NOTES_NEUTRALISE, - scu.NOTES_NEUTRALISE, - scu.NOTES_NEUTRALISE, - scu.NOTES_NEUTRALISE, - ) - # sinon renvoie ABS - return None, None, None, None + # si elles sont toutes du même type, renvoie ce type (ABS, EXC, ATT) + for type_note in (scu.NOTES_NEUTRALISE, scu.NOTES_ATTENTE, None): + if all(x == type_note for x in notes): + return (type_note, type_note, type_note, type_note) + # sinon renvoie "???" + return "???", None, None, None moy = sum(notes_num) / n median = list_median(notes_num) mini = min(notes_num) diff --git a/app/scodoc/sco_moduleimpl_status.py b/app/scodoc/sco_moduleimpl_status.py index 019000cbd..87e8fc438 100644 --- a/app/scodoc/sco_moduleimpl_status.py +++ b/app/scodoc/sco_moduleimpl_status.py @@ -801,7 +801,7 @@ def _ligne_evaluation(