diff --git a/searx/search.py b/searx/search.py index 377d9ceda..8b8ed4762 100644 --- a/searx/search.py +++ b/searx/search.py @@ -139,6 +139,7 @@ class Search(object): self.pageno = 1 self.lang = 'all' self.time_range = None + self.is_advanced = None # set blocked engines self.disabled_engines = request.preferences.engines.get_disabled() @@ -180,6 +181,7 @@ class Search(object): self.lang = query_obj.languages[-1] self.time_range = self.request_data.get('time_range') + self.is_advanced = self.request_data.get('advanced_search') self.engines = query_obj.engines @@ -298,6 +300,7 @@ class Search(object): # 0 = None, 1 = Moderate, 2 = Strict request_params['safesearch'] = request.preferences.get_value('safesearch') request_params['time_range'] = self.time_range + request_params['advanced_search'] = self.is_advanced # update request parameters dependent on # search-engine (contained in engines folder) diff --git a/searx/templates/oscar/advanced.html b/searx/templates/oscar/advanced.html index f0c6101a3..cc37378a1 100644 --- a/searx/templates/oscar/advanced.html +++ b/searx/templates/oscar/advanced.html @@ -1,5 +1,5 @@