mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
title author search already working correctly with return first
This commit is contained in:
parent
80c1954aa3
commit
2a84c0a370
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def search_title_author(query, min_confidence, *filters, return_first=False):
|
||||||
result = editions.first()
|
result = editions.first()
|
||||||
|
|
||||||
if return_first:
|
if return_first:
|
||||||
return result[0]
|
return result
|
||||||
list_results.append(result)
|
list_results.append(result)
|
||||||
return list_results
|
return list_results
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue