Skip to content

Commit

Permalink
Adding fix to get project request
Browse files Browse the repository at this point in the history
  • Loading branch information
thavelock committed Mar 5, 2024
1 parent aadac11 commit a56eaec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions snyk_tags/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ def v3_client(self):
@backoff.on_exception(backoff.expo, httpx.HTTPError, **backoff_params)
def org_projects(self, org_id: str):
with self.v3_client() as c:
next = f"/orgs/{org_id}/projects"
params = {"expand": "target", "limit": 100}
next = f"/orgs/{org_id}/projects?expand=target&limit=100"
while next:
resp = c.get(next, params=params)
resp = c.get(next)
resp.raise_for_status()
assert resp.status_code == 200
body = resp.json()
Expand Down

0 comments on commit a56eaec

Please sign in to comment.