Skip to content

Commit

Permalink
Increase number of projects per page
Browse files Browse the repository at this point in the history
  • Loading branch information
sebge2emasphere committed Aug 17, 2020
1 parent 541373b commit 894c922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kiss/clockify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_projects(self, workspace: str = None) -> List[ClockifyProject]:
if self.cached_workspace_projects.__contains__(workspace):
return self.cached_workspace_projects[workspace]

r = requests.get(ENDPOINT + f'workspaces/{workspace}/projects/', headers=self.headers)
r = requests.get(ENDPOINT + f'workspaces/{workspace}/projects/?page-size=100', headers=self.headers)
if r.status_code != 200:
raise Exception(f'Error while retrying projects. Returned message: {r.json()["message"]}, '
f'status code: {r.status_code}.')
Expand Down

0 comments on commit 894c922

Please sign in to comment.