mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-27 15:41:58 +00:00
commit
df873278ab
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user