From ad3590fa9c36e842da261343dd54315165b89c58 Mon Sep 17 00:00:00 2001 From: RussellDash332 Date: Tue, 6 Feb 2024 19:06:53 +0800 Subject: [PATCH] Fix bug on getting NUS assignments --- autokattis/api/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autokattis/api/__init__.py b/autokattis/api/__init__.py index 8898317..b1592ac 100644 --- a/autokattis/api/__init__.py +++ b/autokattis/api/__init__.py @@ -875,7 +875,7 @@ def assignments(self, offering_id, course_id=None): pids = [] toggle = True else: - pids.append(asg.text.strip()) + pids.append(asg.find('a').get('href').split('/')[-1]) if toggle: data.append({ 'id': aid, diff --git a/setup.py b/setup.py index 9375a3e..e97dda2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup_args = dict( name='autokattis', - version='1.6.2', + version='1.6.3', description='Updated Kattis API wrapper', long_description_content_type="text/markdown", long_description=README,