1
0
forked from ScoDoc/ScoDoc

Fix: affichages malus

This commit is contained in:
Emmanuel Viennet 2022-05-10 18:21:28 +02:00
parent 4eb08ec1d4
commit 55ffc80400

View File

@ -191,7 +191,7 @@ def fmt_note(val, note_max=None, keep_numeric=False):
return "EXC" # excuse, note neutralise
if val == NOTES_ATTENTE:
return "ATT" # attente, note neutralisee
if isinstance(val, float) or isinstance(val, int):
if not isinstance(val, str):
if np.isnan(val):
return "~"
if (note_max is not None) and note_max > 0: