mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-18 03:55:19 +00:00
Support suggestion filtering when ignore book isn't present
This commit is contained in:
parent
1bccffaa9b
commit
aee089fcca
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue