Merge pull request #851 from mouse-reeve/get-started-bug

Fixes books get started view error
This commit is contained in:
Mouse Reeve 2021-04-02 07:22:18 -07:00 committed by GitHub
commit 72c08e8f77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ class GetStartedBooks(View):
def get(self, request): def get(self, request):
""" info about a book """ """ info about a book """
query = request.GET.get("query") query = request.GET.get("query")
book_results = [] book_results = popular_books = []
if query: if query:
book_results = connector_manager.local_search(query, raw=True)[:5] book_results = connector_manager.local_search(query, raw=True)[:5]
if len(book_results) < 5: if len(book_results) < 5: