diff --git a/setup.py b/setup.py index 9bf0d1d..a54e551 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="CVAT wrapper", - version="0.0.14", + version="0.0.15", author="antwxne", author_email="antoine.desruet@epitech.eu", description="Python wrapper for CVAT API", diff --git a/src/CVAT/_get.py b/src/CVAT/_get.py index f6d5fe9..c312212 100644 --- a/src/CVAT/_get.py +++ b/src/CVAT/_get.py @@ -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() \ No newline at end of file + return response.json()["results"][0] \ No newline at end of file