feat: begin_time support
Some checks failed
build / build (push) Failing after 1s
build / build (pull_request) Failing after 0s

This commit is contained in:
李衍志523370910113 2025-02-23 21:51:40 +08:00
parent 7f24a77308
commit 94a85f433e
3 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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):

View File

@ -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"