From 0cc46e018820c808a88347b334c2a092f25237c7 Mon Sep 17 00:00:00 2001 From: fujie Date: Thu, 12 Mar 2026 05:39:55 +0800 Subject: [PATCH] refactor(stats): improve metadata extraction and workflow change detection - Implemented robust plugin object extraction in openwebui_stats.py to handle tool/pipe/action types. - Updated community-stats.yml to detect version changes and plugin removals. - Fixed NameError in _resolve_post_type. --- scripts/openwebui_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openwebui_stats.py b/scripts/openwebui_stats.py index 6f5efef..530da43 100644 --- a/scripts/openwebui_stats.py +++ b/scripts/openwebui_stats.py @@ -321,7 +321,7 @@ class OpenWebUIStats: post_type = plugin_obj.get("type") elif top_type: post_type = top_type - elif not meta and not function_obj: + elif not meta and not plugin_obj: post_type = "post" post_type = self._normalize_post_type(post_type)