From 06f83f145665cfa45a4812182f6d4723efaabae8 Mon Sep 17 00:00:00 2001 From: "Code Hugger (Matthew Jones)" Date: Sat, 24 Aug 2024 02:01:24 -0400 Subject: [PATCH] Fixes #663 - New Quizzes URL not considered in paginated_list (#664) * Fixes #663 - New Quizzes URL not considered in paginated_list * Flake8 error line length * Reformatted by black --- canvasapi/paginated_list.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/canvasapi/paginated_list.py b/canvasapi/paginated_list.py index 0183f93d..bf799874 100644 --- a/canvasapi/paginated_list.py +++ b/canvasapi/paginated_list.py @@ -96,7 +96,10 @@ def _get_next_page(self): else: next_link = None - regex = r"{}(.*)".format(re.escape(self._requester.base_url)) + regex = r"(?:{}|{})(.*)".format( + re.escape(self._requester.base_url), + re.escape(self._requester.new_quizzes_url), + ) self._next_url = ( re.search(regex, next_link["url"]).group(1) if next_link else None