mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 08:19:17 +02:00
forward category to engine without highlighting on the ui
This commit is contained in:
parent
d04e471ce5
commit
8cc529e9a3
3 changed files with 19 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue