Skip to content

Commit

Permalink
Support suggestion filtering when ignore book isn't present
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-reeve committed Aug 27, 2024
1 parent 1bccffa commit aee089f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookwyrm/views/list/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_list_suggestions(
s.default_edition
for s in models.Work.objects.filter(
~Q(editions__in=book_list.books.all()),
~Q(id=ignore_book.id),
~Q(id=ignore_book.id if ignore_book else None),
)
.distinct()
.order_by("-updated_date")[:num_suggestions]
Expand Down

0 comments on commit aee089f

Please sign in to comment.