Skip to content

Commit

Permalink
Merge pull request #44 from lukasz-mitka/feature/list_packages/page_size
Browse files Browse the repository at this point in the history
Increase list packages page size
  • Loading branch information
sondrelg authored Sep 13, 2022
2 parents eeb1249 + 0f57fc1 commit 6601a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def list_org_packages(*, org_name: str, http_client: AsyncClient) -> list[
:param http_client: HTTP client.
:return: List of packages.
"""
response = await http_client.get(f'{BASE_URL}/orgs/{org_name}/packages?package_type=container')
response = await http_client.get(f'{BASE_URL}/orgs/{org_name}/packages?package_type=container&per_page=100')
response.raise_for_status()
return [PackageResponse(**i) for i in response.json()]

Expand All @@ -87,7 +87,7 @@ async def list_packages(*, http_client: AsyncClient) -> list[PackageResponse]:
:param http_client: HTTP client.
:return: List of packages.
"""
response = await http_client.get(f'{BASE_URL}/user/packages?package_type=container')
response = await http_client.get(f'{BASE_URL}/user/packages?package_type=container&per_page=100')
response.raise_for_status()
return [PackageResponse(**i) for i in response.json()]

Expand Down

0 comments on commit 6601a34

Please sign in to comment.