fix: joj3-check-env group match
Some checks failed
CodeQL / Analyze (python) (push) Failing after 5s
mkdocs / deploy (push) Failing after 5s
Python package / build (push) Failing after 3s

This commit is contained in:
张泊明518370910136 2025-05-29 00:31:14 -04:00
parent 30e6d5aaeb
commit 96a3d20312

View File

@ -356,15 +356,10 @@ class Teapot:
f"time period={time_period} hour(s), " f"time period={time_period} hour(s), "
f"max count={max_count}, submit count={submit_count}" f"max count={max_count}, submit count={submit_count}"
) )
use_group = False use_group = True
if name: if name:
comment += f"keyword `{name}` " comment += f"keyword `{name}` "
for group in env.joj3_groups or "": use_group = name.lower() in env.joj3_groups.lower()
if group.lower() == name.lower():
use_group = True
break
else:
use_group = True
comment += ( comment += (
f"in last {time_period} hour(s): " f"in last {time_period} hour(s): "
f"submit count {submit_count}, " f"submit count {submit_count}, "