From 415f6398d61cd35c42ca23c0daf1fc6ba8f2e7a5 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 8 Feb 2023 06:54:19 +0100 Subject: [PATCH] [fix] time_range in HTML form should not be a string 'None' Before this patch SearXNG returns 'time_range': 'None'::
... ...
Signed-off-by: Markus Heiser --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,