From 2cf8cc1f0a59161a00e55d05d3db68a18b1b3c3d Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Thu, 19 Mar 2026 11:42:15 +0100 Subject: [PATCH] fix: add IS_CHANGED to ProjectKey and document source_label usage ProjectKey fetches live API data, so it must re-execute on every queue. Added comment explaining why source_label exists but is unused in Python. Co-Authored-By: Claude Opus 4.6 --- project_loader.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project_loader.py b/project_loader.py index eaa6a88..ba7d1bc 100644 --- a/project_loader.py +++ b/project_loader.py @@ -255,9 +255,15 @@ class ProjectKey: CATEGORY = "utils/json/project" OUTPUT_NODE = False + @classmethod + def IS_CHANGED(cls, **kwargs): + return float("nan") # Always re-fetch from API + def fetch_key(self, source_label, key_name, key_type, manager_url="http://localhost:8080", project_name="", file_name="", sequence_number=1): + # source_label is used by JS to identify which ProjectSource to sync + # config from. The actual config arrives via the optional widgets below. data = _fetch_data(manager_url, project_name, file_name, sequence_number) if data.get("error") in ("http_error", "network_error", "parse_error"): msg = data.get("message", "Unknown error")