Skip to content

Commit

Permalink
fix: joj3-check-env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Feb 1, 2025
1 parent 111526b commit a0982f7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions joint_teapot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,7 @@ def joj3_check_env(
submit_count = 0
commits = repo.iter_commits(paths=scoreboard_file_name, since=since_git_format)
for commit in commits:
comment = commit.message.strip()
lines = comment.splitlines()
lines = commit.message.strip().splitlines()
pattern = (
r"joj3: update scoreboard for (?P<exercise_name>.+?) "
r"by @(?P<submitter>.+) in "
Expand Down Expand Up @@ -907,12 +906,12 @@ def joj3_check_env(
use_group = False
if name:
comment += f"keyword `{name}` "
for group in groups or "":
if group.lower() == name.lower():
use_group = True
break
else:
use_group = True
for group in groups or "":
if group.lower() == name.lower():
use_group = True
break
comment += (
f"in last {time_period} hour(s): "
f"submit count {submit_count}, "
Expand Down

0 comments on commit a0982f7

Please sign in to comment.