From 599c79917eaa42a08603c81fe6cbf90cf7ebf06c Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 8 Jan 2022 18:43:37 -0800 Subject: [PATCH] Makes query to get admins unique --- bookwyrm/views/landing/about.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/views/landing/about.py b/bookwyrm/views/landing/about.py index 9f6236e2..cd4c4a99 100644 --- a/bookwyrm/views/landing/about.py +++ b/bookwyrm/views/landing/about.py @@ -19,7 +19,9 @@ def about(request): "status_count": models.Status.objects.filter( user__local=True, deleted=False ).count(), - "admins": models.User.objects.filter(groups__name__in=["admin", "moderator"]), + "admins": models.User.objects.filter( + groups__name__in=["admin", "moderator"] + ).distinct(), "version": settings.VERSION, }