chore(submission): fix typo

This commit is contained in:
김동주 2024-10-15 03:22:09 +09:00 committed by GitHub
parent c25a314001
commit ad140fa7b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ class SubmissionAPI(APIView):
except Problem.DoesNotExist:
return self.error("Problem not exist")
if data["language"] not in problem.languages:
return self.error(f"{data['language']} is now allowed in the problem")
return self.error(f"{data['language']} is not allowed in the problem")
submission = Submission.objects.create(user_id=request.user.id,
username=request.user.username,
language=data["language"],