mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-16 01:13:47 +00:00
去除部分提交限制
This commit is contained in:
parent
fea77ce92b
commit
08ea52afa9
@ -31,7 +31,7 @@ class CreateProblemCodeTemplateSerializer(serializers.Serializer):
|
||||
|
||||
class CreateOrEditProblemSerializer(serializers.Serializer):
|
||||
_id = serializers.CharField(max_length=32, allow_blank=True, allow_null=True)
|
||||
title = serializers.CharField(max_length=128)
|
||||
title = serializers.CharField(max_length=1024)
|
||||
description = serializers.CharField()
|
||||
input_description = serializers.CharField()
|
||||
output_description = serializers.CharField()
|
||||
|
@ -6,7 +6,7 @@ from judge.languages import language_names
|
||||
class CreateSubmissionSerializer(serializers.Serializer):
|
||||
problem_id = serializers.IntegerField()
|
||||
language = serializers.ChoiceField(choices=language_names)
|
||||
code = serializers.CharField(max_length=20000)
|
||||
code = serializers.CharField(max_length=1024 * 1024)
|
||||
contest_id = serializers.IntegerField(required=False)
|
||||
captcha = serializers.CharField(required=False)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user