mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 12:07:10 +00:00
added task type literal for swagger
This commit is contained in:
@@ -12,6 +12,7 @@ from apps.task.models import (
|
||||
|
||||
class TaskOutSchema(ModelSchema):
|
||||
status: Literal["sent", "checked", "checking", "not_submitted"] = None
|
||||
type: Literal["input", "checker", "review"] = None
|
||||
|
||||
@staticmethod
|
||||
def resolve_status(
|
||||
@@ -30,7 +31,6 @@ class TaskOutSchema(ModelSchema):
|
||||
"competition",
|
||||
"title",
|
||||
"description",
|
||||
"type",
|
||||
"in_competition_position",
|
||||
"points",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user