feat: improve assessment_grading page

This commit is contained in:
2025-08-05 22:19:02 +02:00
parent d0a2ba428b
commit 1a281d32d0
4 changed files with 292 additions and 25 deletions

View File

@@ -126,8 +126,8 @@ class AssessmentService:
if not elem_data.get('label'):
raise ValidationError("Libellé d'élément de notation requis")
grading_type = elem_data.get('grading_type', 'points')
if grading_type not in ['points', 'score']:
grading_type = elem_data.get('grading_type', 'notes')
if grading_type not in ['notes', 'score']:
raise ValidationError("Type de notation invalide")
try: