Skip to content

Commit ad3590f

Browse files
Fix bug on getting NUS assignments
1 parent 2adabe8 commit ad3590f

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
@@ -875,7 +875,7 @@ def assignments(self, offering_id, course_id=None):
875875
pids = []
876876
toggle = True
877877
else:
878-
pids.append(asg.text.strip())
878+
pids.append(asg.find('a').get('href').split('/')[-1])
879879
if toggle:
880880
data.append({
881881
'id': aid,

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.6.2',
8+
version='1.6.3',
99
description='Updated Kattis API wrapper',
1010
long_description_content_type="text/markdown",
1111
long_description=README,

0 commit comments

Comments
 (0)