From a048269dfd96e0af1345ac3993e000cdd2885f26 Mon Sep 17 00:00:00 2001 From: Carlos-Mesquita Date: Wed, 11 Dec 2024 16:54:47 +0000 Subject: [PATCH] Forgot to remove an exception that doesn't make sense since the grading won't be based on exam type, only if media attachment is provided --- ielts_be/controllers/impl/grade.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ielts_be/controllers/impl/grade.py b/ielts_be/controllers/impl/grade.py index 5493ed8..f4c70b6 100644 --- a/ielts_be/controllers/impl/grade.py +++ b/ielts_be/controllers/impl/grade.py @@ -25,9 +25,6 @@ class GradeController(IGradeController): self, task: int, dto: WritingGradeTaskDTO, background_tasks: BackgroundTasks ): - if task == 1 and dto.attachment is None: - raise HTTPException(status_code=400, detail="Academic writing task requires a picture!") - await self._evaluation_service.create_evaluation( dto.userId, dto.sessionId, dto.exerciseId, EvaluationType.WRITING, task )