Skip to content

Commit

Permalink
Merge pull request #203 from snyk-labs/feat/projects-pagination-100
Browse files Browse the repository at this point in the history
feat: increase projects limit to 100
  • Loading branch information
lili2311 authored Oct 10, 2023
2 parents dcc56b8 + 5211efd commit dc75bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pysnyk"
version = "0.9.16"
version = "0.9.17"
description = "A Python client for the Snyk API"
authors = [
"Gareth Rushgrove <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion snyk/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def _rest_to_v1_response_format(self, project):

def _query(self, tags: List[Dict[str, str]] = [], next_url: str = None):
projects = []
params = {}
params: dict = {
"limit": 100,
}
if self.instance:
path = "/orgs/%s/projects" % self.instance.id if not next_url else next_url

Expand Down

0 comments on commit dc75bc9

Please sign in to comment.