mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Do not create a set for already-distinct query result
This commit is contained in:
parent
7c2de92df3
commit
e322d3cae1
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ def search_title_author(
|
|||
|
||||
# filter out multiple editions of the same work
|
||||
list_results = []
|
||||
for work_id in set(editions_of_work[:30]):
|
||||
for work_id in editions_of_work[:30]:
|
||||
result = (
|
||||
results.filter(parent_work=work_id)
|
||||
.order_by("-rank", "-edition_rank")
|
||||
|
|
Loading…
Reference in a new issue