Fix qwant engine, only get results from categories

Closes #3014
This commit is contained in:
Noémi Ványi 2021-10-12 20:06:37 +02:00
parent ee86a63556
commit 3bcca43abf
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ def response(resp):
for row in mainline: for row in mainline:
mainline_type = row.get('type', 'web') mainline_type = row.get('type', 'web')
if mainline_type != keyword:
continue
if mainline_type == 'ads': if mainline_type == 'ads':
# ignore adds # ignore adds
continue continue