From 41f271d2d842df95ecbe4e42d320b024ad6d28ca Mon Sep 17 00:00:00 2001 From: fujie Date: Thu, 12 Mar 2026 17:27:57 +0800 Subject: [PATCH] fix(stats): exclude post and review types from statistics count --- scripts/openwebui_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/openwebui_stats.py b/scripts/openwebui_stats.py index 8f27047..fba85f8 100644 --- a/scripts/openwebui_stats.py +++ b/scripts/openwebui_stats.py @@ -639,8 +639,8 @@ class OpenWebUIStats: stats["total_saves"] += post.get("saveCount", 0) stats["total_comments"] += post.get("commentCount", 0) - # Key: only count downloadable types (exclude post, review) - if post_type in self.DOWNLOADABLE_TYPES: + # Key: exclude post and review types from stats (only count plugins) + if post_type not in ("post", "review"): stats["total_views"] += post_views if post_type not in stats["by_type"]: stats["by_type"][post_type] = 0