From 14ac8bb1b5a36aef2cb87134a143896dde5024b6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 2 Oct 2021 16:56:23 -0700 Subject: [PATCH] Python formatting --- bookwyrm/views/feed.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bookwyrm/views/feed.py b/bookwyrm/views/feed.py index 92953057d..b873224b7 100644 --- a/bookwyrm/views/feed.py +++ b/bookwyrm/views/feed.py @@ -110,12 +110,12 @@ class Status(View): ) visible_thread = privacy_filter( - request.user, - models.Status.objects.filter(thread_id=status.thread_id) + request.user, models.Status.objects.filter(thread_id=status.thread_id) ).values_list("id", flat=True) visible_thread = list(visible_thread) - children = models.Status.objects.select_subclasses().raw(""" + children = models.Status.objects.select_subclasses().raw( + """ WITH RECURSIVE get_thread(depth, id, path) AS ( SELECT 1, st.id, ARRAY[st.id] @@ -132,8 +132,9 @@ class Status(View): ) SELECT * FROM get_thread ORDER BY path; - """, params=[status.id, visible_thread, visible_thread]) - + """, + params=[status.id, visible_thread, visible_thread], + ) data = { **feed_page_data(request.user),