Skip to content

Commit

Permalink
feat: return infos about one project
Browse files Browse the repository at this point in the history
  • Loading branch information
antwxne committed Jun 14, 2022
1 parent 3d08d92 commit cbfe14b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="CVAT wrapper",
version="0.0.14",
version="0.0.15",
author="antwxne",
author_email="[email protected]",
description="Python wrapper for CVAT API",
Expand Down
2 changes: 1 addition & 1 deletion src/CVAT/_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ def get_project_infos(self, project_name: str) -> dict:
response: Response = self.session.get(url=f'{self.url}/api/projects?search={project_name}')
if response.status_code != 200:
raise Exception(response.content)
return response.json()
return response.json()["results"][0]

0 comments on commit cbfe14b

Please sign in to comment.