diff --git a/ChangeLog.md b/ChangeLog.md index 58ad459..7a82d35 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,11 @@ # Change Log +## v0.0.2.6 + +### Bug Fixes + +- Task: Fix update method + ## v0.0.2.5 ### Bug Fixes diff --git a/pyproject.toml b/pyproject.toml index 0546933..d3b93f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "xurrent" -version = "0.0.2.5" +version = "0.0.2.6" authors = [ { name="Fabian Steiner", email="fabian@stei-ner.net" }, ] diff --git a/src/xurrent/tasks.py b/src/xurrent/tasks.py index 6b922f8..ae06950 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'{self._connection_object.base_url}/{Task.resourceUrl}/{id}' + uri = f'{self._connection_object.base_url}/{Task.resourceUrl}/{self.id}' response = self._connection_object.api_call(uri, 'PATCH', data) self.__update_object__(response) return self