From cf5c7d050a757123d362891fe13e15781d3fc029 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Thu, 15 Dec 2016 11:59:21 +0100 Subject: [PATCH 1/2] [fix] engine setting if no categories specified --- searx/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search.py b/searx/search.py index cef42d876..ee04b27f5 100644 --- a/searx/search.py +++ b/searx/search.py @@ -258,7 +258,7 @@ def get_search_query_from_webapp(preferences, form): if not load_default_categories: if not query_categories: query_categories = list(set(engine['category'] - for engine in engines)) + for engine in query_engines)) else: # if no category is specified for this search, # using user-defined default-configuration which From 19cd2bf3b52d4851053030c570322df1c637f9b8 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Fri, 16 Dec 2016 15:21:27 +0100 Subject: [PATCH 2/2] [fix] re-enable ssl verification for searchcode closes #784 --- searx/engines/searchcode_code.py | 5 ----- searx/engines/searchcode_doc.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/searx/engines/searchcode_code.py b/searx/engines/searchcode_code.py index de8cd43be..be7a6d385 100644 --- a/searx/engines/searchcode_code.py +++ b/searx/engines/searchcode_code.py @@ -34,11 +34,6 @@ def request(query, params): params['url'] = search_url.format(query=urlencode({'q': query}), pageno=params['pageno'] - 1) - # Disable SSL verification - # error: (60) SSL certificate problem: unable to get local issuer - # certificate - params['verify'] = False - return params diff --git a/searx/engines/searchcode_doc.py b/searx/engines/searchcode_doc.py index 6c1acdcdd..99e10be62 100644 --- a/searx/engines/searchcode_doc.py +++ b/searx/engines/searchcode_doc.py @@ -27,11 +27,6 @@ def request(query, params): params['url'] = search_url.format(query=urlencode({'q': query}), pageno=params['pageno'] - 1) - # Disable SSL verification - # error: (60) SSL certificate problem: unable to get local issuer - # certificate - params['verify'] = False - return params