1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 19:02:33 +00:00

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

View File

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