From 66e045fed9077dd2313cfefaf2085933593bb335 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sat, 14 Mar 2026 16:04:32 -0700 Subject: [PATCH] chore: better writing --- joint_teapot/teapot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/joint_teapot/teapot.py b/joint_teapot/teapot.py index cf2006e..d2954e3 100644 --- a/joint_teapot/teapot.py +++ b/joint_teapot/teapot.py @@ -439,11 +439,12 @@ class Teapot: f"max count={max_count}, submit count={submit_count}" ) use_group = True + keyword_placeholder = "" if name: - comment += f"keyword `{name}` " + keyword_placeholder = f", with keyword `{name}`" use_group = name.lower() in env.joj3_groups.lower() comment += ( - f"In last {time_period} hour(s): " + f"In last {time_period} hour(s) {keyword_placeholder}: " f"submit count {submit_count}, " f"max count {max_count}" )