Skip to content

Commit

Permalink
Fix for 2024 (#144)
Browse files Browse the repository at this point in the history
* Fix for 2024

* Change default asm 32->64
  • Loading branch information
didedoshka authored Sep 24, 2024
1 parent 4ee9a69 commit 4afefb1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 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.31'
__version__ = '1.16.32'
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 = "2023 group id (e.g. 224, 2210, SPB1, SPB2, auditor23)"
GROUP_ID_HINT = "2024 group id (e.g. 231, 2312)"


@click.command(short_help='Authorize and save authentication data to configuration directory')
Expand Down
4 changes: 2 additions & 2 deletions kks/data/targets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__: 6 # You shouldn't modify the version
__version__: 7 # You shouldn't modify the version


default:
Expand All @@ -19,7 +19,7 @@ default:
files: ['*.c', '*.S', '*.s', 'TASKNAME.cpp']
libs: ['m'] # math lib

asm64bit: false
asm64bit: true
default_asan: true # If true, add asan flags. `--asan/--no-asan` overrides this value
# NOTE `--no-asan` flag only overrides `default_asan`.
# If you add any asan flags in a custom target, they will not be disabled by `--no-asan`
Expand Down
3 changes: 3 additions & 0 deletions kks/ejudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
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)
})

GROUP_ID_BY_CONTEST = {
contest_id: group_id for group_id, contest_id in CONTEST_ID_BY_GROUP.items()
Expand Down
2 changes: 1 addition & 1 deletion kks/util/ejudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def contest_login(cls, auth_data, base_url=None, *, include_creds=False):
def _get_base_url(cls):
url = environ.get('KKS_CUSTOM_URL')
if url is None:
return 'https://caos2023.myltsev.ru'
return 'https://caos2024.myltsev.ru'
# Remove path and/or trailing slash(es) from envvar
return urlsplit(url)._replace(path='', query='', fragment='').geturl()

Expand Down

0 comments on commit 4afefb1

Please sign in to comment.