diff options
| author | Noémi Ványi <sitbackandwait@gmail.com> | 2018-03-22 11:02:24 +0100 |
|---|---|---|
| committer | Noémi Ványi <sitbackandwait@gmail.com> | 2018-03-22 11:02:24 +0100 |
| commit | 8cc529e9a3976e48676676600379ce43f690dd8c (patch) | |
| tree | b21dd9ad903afe756ce43ce996e1806e26cbd2c1 /searx/search.py | |
| parent | d04e471ce53c5efd224a4ed0e7b5d88fb0d3a093 (diff) | |
forward category to engine without highlighting on the ui
Diffstat (limited to 'searx/search.py')
| -rw-r--r-- | searx/search.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/searx/search.py b/searx/search.py index b523c2754..945f32197 100644 --- a/searx/search.py +++ b/searx/search.py @@ -258,8 +258,13 @@ def get_search_query_from_webapp(preferences, form): # if engines are calculated from query, # set categories by using that informations if query_engines and raw_text_query.specific: - query_categories = list(set(engine['category'] - for engine in query_engines)) + additional_categories = set() + for engine in query_engines: + if 'from_bang' in engine and engine['from_bang']: + additional_categories.add('none') + else: + additional_categories.add(engine['category']) + query_categories = list(additional_categories) # otherwise, using defined categories to # calculate which engines should be used |