Merge pull request #2090 from bookwyrm-social/dashboard-warning

Fixes invite request alert count
This commit is contained in:
Mouse Reeve 2022-04-29 15:41:57 -07:00 committed by GitHub
commit a4a06fa32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),