chore: more logs
All checks were successful
build / trigger-build-image (push) Successful in 13s

This commit is contained in:
张泊明518370910136 2025-06-08 03:09:39 -04:00
parent 01b1b464fa
commit ec13490d0b
GPG Key ID: CA088E6D9284F870

View File

@ -309,6 +309,7 @@ class Teapot:
since = now - timedelta(hours=time_period)
time_windows.append(since)
valid_items.append((name, max_count, time_period, since))
logger.info(f"valid items: {valid_items}, time windows: {time_windows}")
all_commits = []
if time_windows:
earliest_since = min(time_windows).strftime("%Y-%m-%dT%H:%M:%S")
@ -337,6 +338,7 @@ class Teapot:
"groups": [g.strip() for g in commit_groups],
}
)
logger.info(f"all commits length: {len(all_commits)}")
for name, max_count, time_period, since in valid_items:
submit_count = 0
time_limit = now - timedelta(hours=time_period)