fix: skip group config if not set
All checks were successful
build / build (push) Successful in 1m45s

This commit is contained in:
张泊明518370910136 2025-06-01 06:49:36 -04:00
parent a3488e3efb
commit 63100803bb
GPG Key ID: D47306D7062CDA9D

View File

@ -55,7 +55,7 @@ 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,
] ]
if repo_conf.groups: if repo_conf.groups.name:
group_config_str = ",".join( group_config_str = ",".join(
f"{name}={max_count}:{time_period}" f"{name}={max_count}:{time_period}"
for name, max_count, time_period in zip( for name, max_count, time_period in zip(