forward category to engine without highlighting on the ui

This commit is contained in:
Noémi Ványi 2018-03-22 11:02:24 +01:00
parent d04e471ce5
commit 8cc529e9a3
3 changed files with 19 additions and 11 deletions

View file

@ -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']