diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-02-08 06:54:19 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-02-10 15:32:21 +0100 |
commit | 415f6398d61cd35c42ca23c0daf1fc6ba8f2e7a5 (patch) | |
tree | f522209f5ac69abad3d00b65de41ba2581239912 /searx | |
parent | 9a710587e847f248b1f0ffcf1e1091e9fc2ec027 (diff) | |
download | searxng-415f6398d61cd35c42ca23c0daf1fc6ba8f2e7a5.tar.gz searxng-415f6398d61cd35c42ca23c0daf1fc6ba8f2e7a5.zip |
[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>
Diffstat (limited to 'searx')
-rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 07225908c..6746f7a00 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -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, |