Skip to content

Commit 08e2c13

Browse files
Handle evolved problem test cases
1 parent be2f967 commit 08e2c13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autokattis/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def stats(self, language='', *languages):
336336
else:
337337
data[pid] = max(
338338
data[pid], new_data,
339-
key=lambda x: (x.get('score'), x['test_case_passed'], -float(x['runtime'] if '>' not in x['runtime'] else 1e9))
339+
key=lambda x: (x.get('score', tc_pass/tc_full), x['test_case_passed'], -float(x['runtime'] if '>' not in x['runtime'] else 1e9))
340340
)
341341
ret = [{'id': k, **v} for k, v in data.items()]
342342
for lang in set(languages) - {language}:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup_args = dict(
77
name='autokattis',
8-
version='1.4.10',
8+
version='1.4.11',
99
description='Updated Kattis API wrapper',
1010
long_description_content_type="text/markdown",
1111
long_description=README,

0 commit comments

Comments
 (0)