From f987e5700d7fee09a5b94f7a7a99b486ee5a4c33 Mon Sep 17 00:00:00 2001 From: "Ing. Fabian Franz Steiner BSc." Date: Tue, 10 Dec 2024 11:51:10 +0100 Subject: [PATCH] Update changelog for version 0.0.2.7; fix ID comparison in __update_object__ method --- ChangeLog.md | 6 ++++++ pyproject.toml | 2 +- src/xurrent/tasks.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 7a82d35..3f69802 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,11 @@ # Change Log +## v0.0.2.7 + +### Bug Fixes + +- Task: `__update_object__` fixed + ## v0.0.2.6 ### Bug Fixes diff --git a/pyproject.toml b/pyproject.toml index d3b93f2..825d698 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "xurrent" -version = "0.0.2.6" +version = "0.0.2.7" authors = [ { name="Fabian Steiner", email="fabian@stei-ner.net" }, ] diff --git a/src/xurrent/tasks.py b/src/xurrent/tasks.py index ae06950..46ce406 100644 --- a/src/xurrent/tasks.py +++ b/src/xurrent/tasks.py @@ -43,7 +43,7 @@ def __init__(self, connection_object: XurrentApiHelper, id, subject: str = None, setattr(self, key, value) def __update_object__(self, data) -> None: - if data.get('id') != self.id: + if int(data.get('id')) != int(self.id): raise ValueError(f"ID mismatch: {self.id} != {data.get('id')}") for key, value in data.items(): setattr(self, key, value)