style: rename
All checks were successful
build / build (push) Successful in 2m36s
build / build (pull_request) Successful in 2m34s

This commit is contained in:
张泊明518370910136 2025-03-05 02:51:44 -05:00
parent 85e358d3b7
commit c06a2d7464
GPG Key ID: D47306D7062CDA9D
3 changed files with 10 additions and 12 deletions

View File

@ -18,7 +18,7 @@ class ParserResultDetail(BaseModel):
mem: bool = True # Display memory usage mem: bool = True # Display memory usage
stdout: bool = False # Display stdout messages stdout: bool = False # Display stdout messages
stderr: bool = False # Display stderr messages stderr: bool = False # Display stderr messages
exitstatus: bool = False exit_status: bool = True
class ParserFile(BaseModel): class ParserFile(BaseModel):

View File

@ -46,15 +46,6 @@ def get_health_check_args(repo_conf: repo.Config) -> List[str]:
def get_teapot_check_args(repo_conf: repo.Config) -> List[str]: def get_teapot_check_args(repo_conf: repo.Config) -> List[str]:
group_config = ""
for i, name in enumerate(repo_conf.groups.name):
group_config = (
group_config
+ f"{name}="
+ f"{repo_conf.groups.max_count[i]}:"
+ f"{repo_conf.groups.time_period_hour[i]},"
)
group_config = group_config.removesuffix(",")
return [ return [
"/usr/local/bin/joint-teapot", "/usr/local/bin/joint-teapot",
"joj3-check-env", "joj3-check-env",
@ -62,7 +53,14 @@ def get_teapot_check_args(repo_conf: repo.Config) -> List[str]:
"--grading-repo-name", "--grading-repo-name",
repo_conf.grading_repo_name, repo_conf.grading_repo_name,
"--group-config", "--group-config",
group_config, ",".join(
f"{name}={max_count}:{time_period}"
for name, max_count, time_period in zip(
repo_conf.groups.name,
repo_conf.groups.max_count,
repo_conf.groups.time_period_hour,
)
),
] ]

View File

@ -128,7 +128,7 @@ def fix_result_detail(
score=0, score=0,
comment="", comment="",
show_files=show_files, show_files=show_files,
show_exit_status=result_detail_parser_config.exitstatus, show_exit_status=result_detail_parser_config.exit_status,
show_runtime=result_detail_parser_config.time, show_runtime=result_detail_parser_config.time,
show_memory=result_detail_parser_config.mem, show_memory=result_detail_parser_config.mem,
) )