Skip to content

Commit

Permalink
Fix paginated synchronous calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ManicJamie committed Dec 10, 2023
1 parent 3b849af commit 12fb42a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions speedruncompy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ async def perform_all_async(self, retries=5, delay=1) -> dict:

def _perform_all_raw(self, retries=5, delay=1):
"""Get all pages and return a dict of {pageNo : pageData}."""
self.pages = {}
self.params.update(page=1)
while True:
page = self.params["page"]
Expand Down

0 comments on commit 12fb42a

Please sign in to comment.