diff --git a/ChangeLog.md b/ChangeLog.md index 53dfea5..58ad459 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,11 @@ # Change Log +## v0.0.2.5 + +### Bug Fixes + +- Task: Fix update method + ## v0.0.2.4 ### New Features diff --git a/pyproject.toml b/pyproject.toml index 4abf723..0546933 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "xurrent" -version = "0.0.2.4" +version = "0.0.2.5" authors = [ { name="Fabian Steiner", email="fabian@stei-ner.net" }, ] diff --git a/src/xurrent/tasks.py b/src/xurrent/tasks.py index ae5df7c..6b922f8 100644 --- a/src/xurrent/tasks.py +++ b/src/xurrent/tasks.py @@ -98,7 +98,7 @@ def update_by_id(connection_object: XurrentApiHelper, id, data) -> T: return task.update(data) def update(self, data) -> T: - uri = f'{connection_object.base_url}/{Task.resourceUrl}/{id}' + uri = f'{self._connection_object.base_url}/{Task.resourceUrl}/{id}' response = self._connection_object.api_call(uri, 'PATCH', data) self.__update_object__(response) return self