From daea57f91c4df4e9ad885325953f437ca763880f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 30 Mar 2021 10:31:23 -0700 Subject: [PATCH] Updates python formatting --- bookwyrm/views/list.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bookwyrm/views/list.py b/bookwyrm/views/list.py index 75ee72ba..7724cd13 100644 --- a/bookwyrm/views/list.py +++ b/bookwyrm/views/list.py @@ -28,11 +28,15 @@ class Lists(View): page = 1 # hide lists with no approved books - lists = models.List.objects.annotate( - item_count=Count("listitem", filter=Q(listitem__approved=True)) - ).filter( - item_count__gt=0 - ).order_by("-updated_date").distinct().all() + lists = ( + models.List.objects.annotate( + item_count=Count("listitem", filter=Q(listitem__approved=True)) + ) + .filter(item_count__gt=0) + .order_by("-updated_date") + .distinct() + .all() + ) lists = privacy_filter( request.user, lists, privacy_levels=["public", "followers"]