mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] time_range in HTML form should not be a string 'None'
Before this patch SearXNG returns 'time_range': 'None':: <form method="GET" action="/searx/search"> ... <input type="hidden" name="time_range" value="None"> ... </form> Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
9a710587e8
commit
415f6398d6
@ -817,7 +817,7 @@ def search():
|
||||
q=request.form['q'],
|
||||
selected_categories = search_query.categories,
|
||||
pageno = search_query.pageno,
|
||||
time_range = search_query.time_range,
|
||||
time_range = search_query.time_range or '',
|
||||
number_of_results = format_decimal(number_of_results),
|
||||
suggestions = suggestion_urls,
|
||||
answers = result_container.answers,
|
||||
|
Loading…
Reference in New Issue
Block a user