From 64adbba30214dab83dee61dbb6c01a6847c79287 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Tue, 28 Jul 2026 07:43:39 +0800 Subject: [PATCH] fix(dashboard): include pending in progress bar and stats count --- app/routers/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/web.py b/app/routers/web.py index e016987..e3941ed 100644 --- a/app/routers/web.py +++ b/app/routers/web.py @@ -593,7 +593,7 @@ def dashboard(request: Request, user: User = Depends(get_current_user_web), db: all_cards.extend(cards) total = len(all_cards) - sent = sum(1 for c in all_cards if c.status == "sent") + sent = sum(1 for c in all_cards if c.status in ("pending", "sent")) delivered = sum(1 for c in all_cards if c.status == "delivered") received = sum(1 for c in all_cards if c.status == "received") countries = len({c.country_to for c in all_cards if c.country_to})