Skip to content

Commit 0ac7d77

Browse files
author
Georgii Aleksahin
authored
Merge pull request #25 from StGrail/toggle_api_version_v9
[ERP-1140]: project entities billable optional = True
2 parents 9a783ef + 7346dd9 commit 0ac7d77

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

toggl_python/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Project(BaseEntity):
2828
is_private: bool = True
2929
template: Optional[bool] = None
3030
template_id: Optional[int] = None
31-
billable: bool = True
31+
billable: Optional[bool] = True
3232
auto_estimates: Optional[bool] = False
3333
estimated_hours: Optional[int] = None
3434
color: Union[str, int] = 0

toggl_python/repository.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def additionat_method(
106106
if not self.DETAIL_URL:
107107
raise AttributeError("Not defined DETAIL_URL")
108108
_url = (self.DETAIL_URL + "/" + url).format(id=_id)
109-
print("___url", _url)
110109
return self._list(_url, entity, headers=self.HEADERS, param=params, data_key=data_key)
111110
elif single_item:
112111
_url = str(self.BASE_URL) + f"{url}"
@@ -153,11 +152,8 @@ def _list(
153152
params = kwargs
154153
params.update(self.ADDITIONAL_PARAMS.get("list", {}))
155154

156-
print("_url", _url)
157-
158155
response = self.get(_url, params=params)
159156
response_body = response.json()
160-
print("response_body", response_body)
161157

162158
data = response_body
163159
data_key = data_key or self.DATA_CONTAINER.get("list", None)

0 commit comments

Comments
 (0)