mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Remove trailing whitespace from queries
This commit is contained in:
parent
f0f65b8b73
commit
47f1865c59
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ def search(query, min_confidence=0, filters=None, return_first=False):
|
|||
filters = filters or []
|
||||
if not query:
|
||||
return []
|
||||
query = query.strip()
|
||||
|
||||
results = None
|
||||
# first, try searching unqiue identifiers
|
||||
# unique identifiers never have spaces, title/author usually do
|
||||
|
|
Loading…
Reference in a new issue