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 <noreply@anthropic.com>
This commit is contained in:
10
tracker.py
10
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:
|
class UsageTracker:
|
||||||
def __init__(self, db_path=DB_PATH):
|
def __init__(self, db_path=DB_PATH):
|
||||||
self._db_path = db_path
|
self._db_path = db_path
|
||||||
@@ -171,7 +178,8 @@ class UsageTracker:
|
|||||||
else:
|
else:
|
||||||
entry["status"] = "unused_new"
|
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
|
return result
|
||||||
|
|
||||||
def _get_first_prompt_time(self):
|
def _get_first_prompt_time(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user