Skip to content

Commit 070226e

Browse files
committed
Use by default data key "data" in retrieve method
1 parent bad0f6d commit 070226e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "toggl_python"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "Python wraper for Toggl API."
55
authors = ["Ivlev Denis <[email protected]>"]
66
readme = "README.md"

toggl_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.2.2"
1+
__version__ = "0.2.3"
22

33
from .auth import BasicAuth, TokenAuth # noqa: F401
44
from .entities import Dashboard # noqa: F401

toggl_python/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def additionat_method(
7979
else:
8080
raise NotSupported
8181

82-
def _retrieve(self, _url, entity_class, data_key: str = None, **kwargs):
82+
def _retrieve(self, _url, entity_class, data_key: str = "data", **kwargs):
8383
response = self.get(_url)
8484
data = response.json()
8585
if data_key:

0 commit comments

Comments
 (0)