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.
This commit is contained in:
fujie
2026-03-12 05:39:55 +08:00
parent 93a42cbe03
commit 0cc46e0188

View File

@@ -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)