From 966bec1d18f2974b28411353ca927d65fe530b61 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 26 Apr 2022 08:33:15 -0700 Subject: [PATCH] Fixes invite request alert count --- bookwyrm/views/admin/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/admin/dashboard.py b/bookwyrm/views/admin/dashboard.py index 92fb0185e..b06b6ba00 100644 --- a/bookwyrm/views/admin/dashboard.py +++ b/bookwyrm/views/admin/dashboard.py @@ -103,7 +103,7 @@ class Dashboard(View): status="pending" ).count(), "invite_requests": models.InviteRequest.objects.filter( - ignored=False, invite_sent=False + ignored=False, invite__isnull=True ).count(), "user_stats": user_chart.get_chart(start, end, interval), "status_stats": status_chart.get_chart(start, end, interval),