chore: better writing
All checks were successful
build / trigger-build-image (push) Successful in 1m21s

This commit is contained in:
张泊明518370910136 2026-03-14 16:04:32 -07:00
parent 71414ef9c9
commit 66e045fed9
GPG Key ID: CA088E6D9284F870

View File

@ -439,11 +439,12 @@ class Teapot:
f"max count={max_count}, submit count={submit_count}" f"max count={max_count}, submit count={submit_count}"
) )
use_group = True use_group = True
keyword_placeholder = ""
if name: if name:
comment += f"keyword `{name}` " keyword_placeholder = f", with keyword `{name}`"
use_group = name.lower() in env.joj3_groups.lower() use_group = name.lower() in env.joj3_groups.lower()
comment += ( comment += (
f"In last {time_period} hour(s): " f"In last {time_period} hour(s) {keyword_placeholder}: "
f"submit count {submit_count}, " f"submit count {submit_count}, "
f"max count {max_count}" f"max count {max_count}"
) )