Merge pull request #1494 from bookwyrm-social/search-limits

Remove hard limit on search endpoints
This commit is contained in:
Mouse Reeve 2021-10-03 11:45:12 -07:00 committed by GitHub
commit 15f6d2afc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ def user_search(query, viewer, *_):
.filter( .filter(
similarity__gt=0.5, similarity__gt=0.5,
) )
.order_by("-similarity")[:10] .order_by("-similarity")
), None ), None
@ -122,5 +122,5 @@ def list_search(query, viewer, *_):
.filter( .filter(
similarity__gt=0.1, similarity__gt=0.1,
) )
.order_by("-similarity")[:10] .order_by("-similarity")
), None ), None