Skip to content

Commit

Permalink
Add SPb and auditor (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
didedoshka authored Sep 24, 2024
1 parent d44b0c9 commit 719cf8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kks/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.16.32'
__version__ = '1.16.33'
2 changes: 1 addition & 1 deletion 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 = "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')
Expand Down
4 changes: 4 additions & 0 deletions kks/ejudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 719cf8a

Please sign in to comment.