Updates other calls to the search endpoint

This commit is contained in:
Mouse Reeve
2021-09-16 10:55:23 -07:00
parent 98325818b2
commit 0d5e05a3c2
3 changed files with 6 additions and 9 deletions

View File

@ -4,7 +4,7 @@ from django.http import JsonResponse
from django.template.response import TemplateResponse
from django.views import View
from bookwyrm.connectors import connector_manager
from bookwyrm import book_search
from bookwyrm.settings import PAGE_LENGTH
from .helpers import is_api_request
@ -14,7 +14,7 @@ class Isbn(View):
def get(self, request, isbn):
"""info about a book"""
book_results = connector_manager.isbn_local_search(isbn)
book_results = book_search.isbn_search(isbn)
if is_api_request(request):
return JsonResponse([r.json() for r in book_results], safe=False)