Separate out local and remote search results
This commit is contained in:
@ -13,8 +13,10 @@ User.objects.get(id=1).followers.add(User.objects.get(id=2))
|
||||
|
||||
Connector.objects.create(
|
||||
identifier='openlibrary.org',
|
||||
name='OpenLibrary',
|
||||
connector_file='openlibrary',
|
||||
base_url='https://openlibrary.org',
|
||||
books_url='https://openlibrary.org',
|
||||
covers_url='https://covers.openlibrary.org',
|
||||
search_url='https://openlibrary.org/search?q=',
|
||||
key_name='openlibrary_key',
|
||||
@ -22,11 +24,15 @@ Connector.objects.create(
|
||||
|
||||
Connector.objects.create(
|
||||
identifier=DOMAIN,
|
||||
name='Local',
|
||||
self=True,
|
||||
connector_file='self_connector',
|
||||
base_url='https://%s/book' % DOMAIN,
|
||||
base_url='https://%s' % DOMAIN,
|
||||
books_url='https://%s/book' % DOMAIN,
|
||||
covers_url='https://%s/images/covers' % DOMAIN,
|
||||
search_url='https://%s/search?q=' % DOMAIN,
|
||||
key_name='openlibrary_key',
|
||||
priority=1,
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user