From ec94c58d67267c8fe62f5412102e9fea249a4d63 Mon Sep 17 00:00:00 2001 From: Fernando Celmer Date: Mon, 6 Apr 2026 19:09:49 -0300 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=AA=B2=20BUG-#129:=20Fix=20task=5Fid?= =?UTF-8?q?=3D0=20being=20treated=20as=20falsy=20and=20overwritten=20with?= =?UTF-8?q?=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotflow/core/context.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotflow/core/context.py b/dotflow/core/context.py index 087a1d04..ce468816 100644 --- a/dotflow/core/context.py +++ b/dotflow/core/context.py @@ -70,8 +70,7 @@ def task_id(self): def task_id(self, value: int): if isinstance(value, int): self._task_id = value - - if not self.task_id: + elif self._task_id is None: self._task_id = value @property From 1e58967dbe01be9d1279608187d790be57071ac7 Mon Sep 17 00:00:00 2001 From: Fernando Celmer Date: Mon, 6 Apr 2026 19:12:19 -0300 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9D=20PEP8-#129:=20Combine=20if=20?= =?UTF-8?q?branches=20to=20satisfy=20ruff=20SIM114?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotflow/core/context.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dotflow/core/context.py b/dotflow/core/context.py index ce468816..a02c3aa4 100644 --- a/dotflow/core/context.py +++ b/dotflow/core/context.py @@ -68,9 +68,7 @@ def task_id(self): @task_id.setter def task_id(self, value: int): - if isinstance(value, int): - self._task_id = value - elif self._task_id is None: + if isinstance(value, int) or self._task_id is None: self._task_id = value @property From 9e8684ed0c1daa435926b18b68338329ae101387 Mon Sep 17 00:00:00 2001 From: Fernando Celmer Date: Mon, 6 Apr 2026 19:18:57 -0300 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=AA=B2=20BUG-#129:=20Only=20accept=20?= =?UTF-8?q?int=20values=20for=20task=5Fid,=20removing=20unsafe=20fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotflow/core/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotflow/core/context.py b/dotflow/core/context.py index a02c3aa4..50f05150 100644 --- a/dotflow/core/context.py +++ b/dotflow/core/context.py @@ -68,7 +68,7 @@ def task_id(self): @task_id.setter def task_id(self, value: int): - if isinstance(value, int) or self._task_id is None: + if isinstance(value, int): self._task_id = value @property