mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-30 05:21:08 +00:00
Raise priority for external connectors in initdb
By default, OpenLibrary and Inventaire were prioritzed below other BookWyrm nodes. In practice, people have gotten better search results from these connectors, hence the change. With the search refactor, this has much less impact, but it will show these search results higher in the list. If the results page shows all the connectors' results integrated, this field should be removed entirely.
This commit is contained in:
parent
a053f20961
commit
5e99002aad
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ def init_connectors():
|
||||||
covers_url="https://inventaire.io",
|
covers_url="https://inventaire.io",
|
||||||
search_url="https://inventaire.io/api/search?types=works&types=works&search=",
|
search_url="https://inventaire.io/api/search?types=works&types=works&search=",
|
||||||
isbn_search_url="https://inventaire.io/api/entities?action=by-uris&uris=isbn%3A",
|
isbn_search_url="https://inventaire.io/api/entities?action=by-uris&uris=isbn%3A",
|
||||||
priority=3,
|
priority=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
models.Connector.objects.create(
|
models.Connector.objects.create(
|
||||||
|
@ -101,7 +101,7 @@ def init_connectors():
|
||||||
covers_url="https://covers.openlibrary.org",
|
covers_url="https://covers.openlibrary.org",
|
||||||
search_url="https://openlibrary.org/search?q=",
|
search_url="https://openlibrary.org/search?q=",
|
||||||
isbn_search_url="https://openlibrary.org/api/books?jscmd=data&format=json&bibkeys=ISBN:",
|
isbn_search_url="https://openlibrary.org/api/books?jscmd=data&format=json&bibkeys=ISBN:",
|
||||||
priority=3,
|
priority=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue