mirror of
https://github.com/searx/searx
synced 2024-11-22 01:45:21 +01:00
fix issue reported by linter
This commit is contained in:
parent
539e1a873e
commit
57e7e3bbf6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user