From ca01871cf6c972a4800aa0bdcc8e204623e5961d Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 22 Feb 2026 14:14:08 +0100 Subject: [PATCH] Exclude ComfyUI-Manager and node-stats from package list These are management/meta tools, not workflow node packages. Showing them in the stats would be confusing since they're never used in actual workflows. Co-Authored-By: Claude Opus 4.6 --- tracker.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tracker.py b/tracker.py index 184b339..a735794 100644 --- a/tracker.py +++ b/tracker.py @@ -29,6 +29,13 @@ CREATE INDEX IF NOT EXISTS idx_prompt_log_timestamp ON prompt_log(timestamp); """ +# Packages excluded from stats (management/meta tools, not real workflow nodes) +EXCLUDED_PACKAGES = { + "ComfyUI-Manager", + "comfyui-nodes-stats", +} + + class UsageTracker: def __init__(self, db_path=DB_PATH): self._db_path = db_path @@ -171,7 +178,8 @@ class UsageTracker: else: entry["status"] = "unused_new" - result = sorted(packages.values(), key=lambda p: p["total_executions"]) + result = [p for p in packages.values() if p["package"] not in EXCLUDED_PACKAGES] + result.sort(key=lambda p: p["total_executions"]) return result def _get_first_prompt_time(self):