fix(dashboard): include pending in progress bar and stats count
This commit is contained in:
1 parent
996770020f
commit
64adbba302
1 file changed
+1
-1
+1
-1
@@ -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})
|
||||
|
||||
Reference in new issue
Block a user