From 6493c6495a664fb5a0b68b2492b8d35d486f6151 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Mon, 9 Feb 2026 10:13:11 +0000 Subject: [PATCH] fix(homepage): show stats placeholder when database is empty The stats recomputation task populates the cache with zero values on startup, causing build_stat_cards() to return 6 cards even with an empty database. Gate the stats section on stats.is_empty() in addition to stat_cards.is_empty() so placeholders display correctly. --- templates/pages/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/pages/home.html b/templates/pages/home.html index d32b48a..b980809 100644 --- a/templates/pages/home.html +++ b/templates/pages/home.html @@ -241,7 +241,7 @@ >View all stats → - {% if !stat_cards.is_empty() %} + {% if !stats.is_empty() && !stat_cards.is_empty() %}