1
0
mirror of https://github.com/searx/searx synced 2024-11-21 17:37:37 +01:00

fix issue reported by linter

This commit is contained in:
Noémi Ványi 2022-09-29 22:58:43 +02:00
parent 539e1a873e
commit 57e7e3bbf6

View File

@ -647,7 +647,7 @@ def search():
# removing html content and whitespace duplications
result['title'] = ' '.join(html_to_text(result['title']).strip().split())
if 'url' in result and !('pretty_url' in result):
if 'url' in result and 'pretty_url' not in result:
result['pretty_url'] = prettify_url(result['url'])
# TODO, check if timezone is calculated right