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

This commit is contained in:
Carlos-Mesquita
2024-12-11 16:54:47 +00:00
parent a8f8b37e40
commit a048269dfd

View File

@@ -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
)