mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-31 11:22:21 +00:00
Prefer to only show default editions of works
This commit is contained in:
parent
99adb2ef38
commit
3f437069bd
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ class Connector(AbstractConnector):
|
|||
SearchVector('description', weight='C') +\
|
||||
SearchVector('series', weight='C')
|
||||
).filter(search=query)
|
||||
results = results.filter(default=True) or results
|
||||
|
||||
search_results = []
|
||||
for book in results[:10]:
|
||||
|
|
Loading…
Reference in a new issue