Updates tests
This commit is contained in:
parent
ed71b791c9
commit
b4cfda0587
2 changed files with 32 additions and 9 deletions
|
@ -27,6 +27,9 @@ class Search(View):
|
|||
return api_book_search(request)
|
||||
|
||||
query = request.GET.get("q")
|
||||
if not query:
|
||||
return TemplateResponse(request, "search/book.html")
|
||||
|
||||
search_type = request.GET.get("type")
|
||||
if query and not search_type:
|
||||
search_type = "user" if "@" in query else "book"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue