diff --git a/setup.py b/setup.py index 068468a..683c49c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -VERSION = '1.5.0' +VERSION = '1.5.1' with open('requirements.txt') as f: requirements = f.read().splitlines() diff --git a/surge/projects.py b/surge/projects.py index ad319ae..4c8b735 100644 --- a/surge/projects.py +++ b/surge/projects.py @@ -169,7 +169,7 @@ def list_blueprints(cls, api_key: str = None): return projects @classmethod - def retrieve(cls, project_id: str, api_key: str = None): + def retrieve(cls, project_id: str, include_tasks: bool=False, api_key: str = None): ''' Retrieves a specific project you have created. @@ -180,7 +180,8 @@ def retrieve(cls, project_id: str, api_key: str = None): project: Project object ''' endpoint = f"{PROJECTS_ENDPOINT}/{project_id}" - response_json = cls.get(endpoint, api_key=api_key) + response_json = cls.get( + endpoint, params={ "exclude_tasks": str(include_tasks).lower()}, api_key=api_key) return cls(**response_json) def list_copies(self, api_key: str = None):