From e2d1002d2eb1a70f852ad95ca529f75e9d6c37cf Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 1 Jan 2026 07:04:12 -0400 Subject: [PATCH] Fix 'All Tools' count showing filtered category count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit total_count was using the API response meta.total which reflects the current filter. Now sums all category counts for consistent display. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/smarttools/web/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/smarttools/web/routes.py b/src/smarttools/web/routes.py index 63d04e5..9e9ad37 100644 --- a/src/smarttools/web/routes.py +++ b/src/smarttools/web/routes.py @@ -234,12 +234,14 @@ def _render_tools(category_override: Optional[str] = None): meta = payload.get("meta", {}) categories = _load_categories() + # Sum all category counts for the "All Tools" total + all_tools_total = sum(c.count for c in categories) return render_template( "pages/tools.html", tools=payload.get("data", []), categories=categories, current_category=category, - total_count=meta.get("total", 0), + total_count=all_tools_total, sort=sort, query=query, pagination=_build_pagination(meta),