From 719cf8ad9c4bf3a618a094182f534184608c7d45 Mon Sep 17 00:00:00 2001 From: Dmitriy Gorokhov Date: Tue, 24 Sep 2024 15:45:26 +0300 Subject: [PATCH] Add SPb and auditor (#145) --- kks/__init__.py | 2 +- kks/cmd/auth.py | 2 +- kks/ejudge.py | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kks/__init__.py b/kks/__init__.py index 99df778..977178e 100644 --- a/kks/__init__.py +++ b/kks/__init__.py @@ -1 +1 @@ -__version__ = '1.16.32' +__version__ = '1.16.33' diff --git a/kks/cmd/auth.py b/kks/cmd/auth.py index 3694e7f..f4bd4e8 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 = "2024 group id (e.g. 231, 2312)" +GROUP_ID_HINT = "2024 group id (e.g. 231, 2312, SPb-AMI, SPb-ADAAI, auditor24)" @click.command(short_help='Authorize and save authentication data to configuration directory') diff --git a/kks/ejudge.py b/kks/ejudge.py index 63e479e..722fe1c 100644 --- a/kks/ejudge.py +++ b/kks/ejudge.py @@ -38,9 +38,13 @@ CONTEST_ID_BY_GROUP['SPB1'] = 12 CONTEST_ID_BY_GROUP['SPB2'] = 13 CONTEST_ID_BY_GROUP['auditor23'] = 14 + CONTEST_ID_BY_GROUP.update({ f'23{group}': int(f'23{group}') for group in range(1, 12) }) +CONTEST_ID_BY_GROUP['SPb-ADAAI'] = 2314 +CONTEST_ID_BY_GROUP['auditor24'] = 2315 +CONTEST_ID_BY_GROUP['SPb-AMI'] = 2316 GROUP_ID_BY_CONTEST = { contest_id: group_id for group_id, contest_id in CONTEST_ID_BY_GROUP.items()