title author search already working correctly with return first

This commit is contained in:
Mouse Reeve 2021-11-12 13:59:54 -08:00
parent 80c1954aa3
commit 2a84c0a370

View file

@ -128,7 +128,7 @@ def search_title_author(query, min_confidence, *filters, return_first=False):
result = editions.first()
if return_first:
return result[0]
return result
list_results.append(result)
return list_results