1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 21:58:25 +02:00

Customize the notation sheet template for juries

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-04-07 21:47:06 +02:00
parent b921ca045e
commit 505a94e3aa
9 changed files with 535 additions and 12 deletions

View File

@ -288,7 +288,7 @@ class UploadNotesForm(forms.Form):
continue
name = line[0]
if name in ["Rôle", "Juré", "moyenne", "coefficient", "sous-total", "Equipe"]:
if name.lower() in ["rôle", "juré", "moyenne", "coefficient", "sous-total", "équipe", "equipe"]:
continue
notes = line[1:line_length]
if not all(s.isnumeric() or s[0] == '-' and s[1:].isnumeric() for s in notes):