mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 07:06:41 +00:00
Return None if no results found in first mode
This commit is contained in:
parent
aeea1c3fee
commit
6e22035c27
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ def search(query, first=False):
|
|||
'results': result,
|
||||
})
|
||||
|
||||
if first:
|
||||
return None
|
||||
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in a new issue