Skip to content

Commit

Permalink
add auditors group for 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0iq authored and vvd170501 committed Sep 18, 2023
1 parent c60f829 commit 20149a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kks/cmd/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from kks.util.ejudge import AuthData, EjudgeSession


GROUP_ID_HINT = "2023 group id (e.g. 224, 2210, SPB1, SPB2)"
GROUP_ID_HINT = "2023 group id (e.g. 224, 2210, SPB1, SPB2, auditor23)"


@click.command(short_help='Authorize and save authentication data to configuration directory')
Expand Down Expand Up @@ -39,7 +39,7 @@ def auth(login, password, group_id, contest_id, store_password):
if contest_id is None:
click.secho(
f"Invalid group id '{group_id}'"
"(should be a number from 211 to 2110)",
"(should be a number from 221 to 2210, or SPB1/SPB2, or auditor23)",
fg='red', err=True
)
return
Expand Down
1 change: 1 addition & 0 deletions kks/ejudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
})
CONTEST_ID_BY_GROUP['SPB1'] = 12
CONTEST_ID_BY_GROUP['SPB2'] = 13
CONTEST_ID_BY_GROUP['auditor23'] = 14

GROUP_ID_BY_CONTEST = {
contest_id: group_id for group_id, contest_id in CONTEST_ID_BY_GROUP.items()
Expand Down

0 comments on commit 20149a9

Please sign in to comment.