Merge pull request #479 from hepheir/master

Found a typo
This commit is contained in:
Mikucat 2024-10-23 03:05:08 +00:00 committed by GitHub
commit df873278ab
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"],