Fix CSV process

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2023-03-31 18:28:23 +02:00
parent 7605b9cc00
commit bd31375bf3
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ class UploadNotesForm(forms.Form):
if len(line) < 19:
continue
name = line[0]
if name in ["moyenne", "coefficient", "sous-total"]:
continue
notes = line[1:19]
if not all(s.isnumeric() for s in notes):
continue