Skip to content

Commit

Permalink
Update Paginator use (post merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Dec 13, 2024
1 parent 1ab80f6 commit de976f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/posit/connect/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ def find_by(self, **conditions) -> Any | None:

class _PaginatedResourceSequence(_ResourceSequence):
def fetch(self, **conditions):
url = self._ctx.url + self._path
paginator = Paginator(self._ctx.session, url, dict(**conditions))
paginator = Paginator(self._ctx, self._path, dict(**conditions))
for page in paginator.fetch_pages():
resources = []
results = page.results
Expand Down

0 comments on commit de976f3

Please sign in to comment.