mirror of
https://github.com/Findus23/cr-search.git
synced 2024-09-19 15:23:44 +02:00
allow longer search terms
This commit is contained in:
parent
10a46f5b43
commit
a793ace78c
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ def api_question():
|
|||
series = request.args.get('series')
|
||||
if not query or not until or not series:
|
||||
return "no suggest query", 400
|
||||
if len(query) > 50:
|
||||
if len(query) > 500:
|
||||
return "too long query", 400
|
||||
cache_key = f"suggest_{until}_{series}_{query}"
|
||||
if len(query) < 3:
|
||||
|
@ -94,7 +94,7 @@ def api_search():
|
|||
exact = False # don't allow exact searches
|
||||
if not query or not until or not series:
|
||||
return "no search query", 400
|
||||
if len(query) > 50:
|
||||
if len(query) > 500:
|
||||
return "too long query", 400
|
||||
|
||||
if exact:
|
||||
|
|
Loading…
Reference in a new issue