From 3f08d6d8c41a5356c0bec18b50fa3ba9c69cce37 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 8 Jun 2024 08:18:15 -0700 Subject: [PATCH] Use a simpler query for books to show on the landing page --- bookwyrm/templatetags/landing_page_tags.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bookwyrm/templatetags/landing_page_tags.py b/bookwyrm/templatetags/landing_page_tags.py index ea2512cc72..bc7594fc47 100644 --- a/bookwyrm/templatetags/landing_page_tags.py +++ b/bookwyrm/templatetags/landing_page_tags.py @@ -71,14 +71,8 @@ def get_landing_books(): """list of books for the landing page""" return list( set( - models.Edition.objects.filter( - review__published_date__isnull=False, - review__deleted=False, - review__user__local=True, - review__privacy__in=["public", "unlisted"], - ) - .exclude(cover__exact="") + models.Edition.objects.exclude(cover__exact="") .distinct() - .order_by("-review__published_date")[:6] + .order_by("-updated_date")[:6] ) )