diff --git a/kks/cmd/auth.py b/kks/cmd/auth.py index 8d6902b..8503fc4 100644 --- a/kks/cmd/auth.py +++ b/kks/cmd/auth.py @@ -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') @@ -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 diff --git a/kks/ejudge.py b/kks/ejudge.py index b8593fb..ecb41f4 100644 --- a/kks/ejudge.py +++ b/kks/ejudge.py @@ -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()