mirror of
https://github.com/searxng/searxng.git
synced 2025-07-14 00:39:18 +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
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue