forked from mirrors/bookwyrm
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