fix: new codes & tests
This commit is contained in:
parent
571577ab70
commit
4a7295d008
|
@ -167,10 +167,6 @@ class Stage(BaseModel):
|
||||||
class Config(BaseModel):
|
class Config(BaseModel):
|
||||||
name: str = ""
|
name: str = ""
|
||||||
log_path: str = Field("", serialization_alias="logPath")
|
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")
|
actor_csv_path: str = Field("", serialization_alias="actorCsvPath")
|
||||||
max_total_score: int = Field(100, serialization_alias="maxTotalScore")
|
max_total_score: int = Field(100, serialization_alias="maxTotalScore")
|
||||||
stage: Stage
|
stage: Stage
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 10245871,
|
"maxTotalScore": 10245871,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
max-total-score = 10245871
|
max-total-score = 10245871
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "health check",
|
"name": "health check",
|
||||||
"logPath": "/home/tt/.cache/joj3/health/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/health/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex3",
|
"name": "hw7 ex3",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
time.end = 2024-12-30 23:59:59+08:00
|
time.end = 2024-12-30 23:59:59+08:00
|
||||||
time.begin = 2024-12-29 23:59:59+08:00
|
time.begin = 2024-12-29 23:59:59+08:00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hw7 ex2",
|
"name": "hw7 ex2",
|
||||||
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
"logPath": "/home/tt/.cache/joj3/hw7/joj3.log",
|
||||||
"expireUnixTimestamp": 0,
|
|
||||||
"effectiveUnixTimestamp": 0,
|
|
||||||
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
"actorCsvPath": "/home/tt/.config/joj/students.csv",
|
||||||
"maxTotalScore": 100,
|
"maxTotalScore": 100,
|
||||||
"stage": {
|
"stage": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general task configuration
|
# general task configuration
|
||||||
task.name = "hw7 ex2" # task name
|
name = "hw7 ex2" # task name
|
||||||
|
|
||||||
[[stages]]
|
[[stages]]
|
||||||
name = "[cq] Filelength"
|
name = "[cq] Filelength"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user