feat: improve assessment_grading page
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user