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:
@@ -25,9 +25,6 @@ class GradeController(IGradeController):
|
|||||||
self,
|
self,
|
||||||
task: int, dto: WritingGradeTaskDTO, background_tasks: BackgroundTasks
|
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(
|
await self._evaluation_service.create_evaluation(
|
||||||
dto.userId, dto.sessionId, dto.exerciseId, EvaluationType.WRITING, task
|
dto.userId, dto.sessionId, dto.exerciseId, EvaluationType.WRITING, task
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user