summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2018-03-22 11:02:24 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2018-03-22 11:02:24 +0100
commit8cc529e9a3976e48676676600379ce43f690dd8c (patch)
treeb21dd9ad903afe756ce43ce996e1806e26cbd2c1 /searx/engines
parentd04e471ce53c5efd224a4ed0e7b5d88fb0d3a093 (diff)
downloadsearxng-8cc529e9a3976e48676676600379ce43f690dd8c.tar.gz
searxng-8cc529e9a3976e48676676600379ce43f690dd8c.zip
forward category to engine without highlighting on the ui
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/findx.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/engines/findx.py b/searx/engines/findx.py
index 30a26402a..db4a1aa5f 100644
--- a/searx/engines/findx.py
+++ b/searx/engines/findx.py
@@ -33,12 +33,8 @@ type_map = {
def request(query, params):
- category = 'general'
- if 'category' in params and len(params['category']) == 1:
- category = params['category'][0]
-
params['url'] = search_url.format(
- category=type_map[category],
+ category=type_map[params['category']],
q=urlencode({
'q': query,
'page': params['pageno']