Skip to content

Commit

Permalink
Fixes #663 - New Quizzes URL not considered in paginated_list (#664)
Browse files Browse the repository at this point in the history
* Fixes #663 - New Quizzes URL not considered in paginated_list

* Flake8 error line length

* Reformatted by black
  • Loading branch information
jonespm authored Aug 24, 2024
1 parent 4b4fbd8 commit 06f83f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion canvasapi/paginated_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06f83f1

Please sign in to comment.