mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-19 11:05:10 +00:00
b05f864106
* chiaki_dev: fix ci Add submission module # Conflicts: # requirements.txt
9 lines
295 B
Python
9 lines
295 B
Python
from utils.api import serializers
|
|
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)
|