feat: begin_time support
This commit is contained in:
parent
7f24a77308
commit
94a85f433e
|
@ -125,6 +125,9 @@ class Config(BaseModel):
|
|||
name: str = ""
|
||||
log_path: str = Field("", serialization_alias="logPath")
|
||||
expire_unix_timestamp: int = Field(-1, serialization_alias="expireUnixTimestamp")
|
||||
effective_unix_timestamp: int = Field(
|
||||
-1, serialization_alias="effectiveUnixTimestamp"
|
||||
)
|
||||
actor_csv_path: str = Field("", serialization_alias="actorCsvPath")
|
||||
max_total_score: int = Field(100, serialization_alias="maxTotalScore")
|
||||
stage: Stage
|
||||
|
|
|
@ -97,6 +97,7 @@ class Stage(BaseModel):
|
|||
|
||||
class Release(BaseModel):
|
||||
deadline: Optional[datetime] # RFC 3339 formatted date-time with offset
|
||||
begin_time: Optional[datetime]
|
||||
|
||||
|
||||
class Task(BaseModel):
|
||||
|
|
|
@ -3,6 +3,7 @@ task.name = "hw7 ex2" # task name
|
|||
task.type = "homework/h7/e2" # remove this task type later
|
||||
|
||||
release.deadline = 2024-12-30 23:59:59+08:00
|
||||
release.begin_time = 2024-12-29 23:59:59+08:00
|
||||
|
||||
[[stages]]
|
||||
name = "Compilation"
|
||||
|
|
Loading…
Reference in New Issue
Block a user