summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-02-08 06:54:19 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-02-10 15:32:21 +0100
commit415f6398d61cd35c42ca23c0daf1fc6ba8f2e7a5 (patch)
treef522209f5ac69abad3d00b65de41ba2581239912 /searx/webapp.py
parent9a710587e847f248b1f0ffcf1e1091e9fc2ec027 (diff)
[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/webapp.py')
-rwxr-xr-xsearx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 07225908..6746f7a0 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,