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
1 changed files with 1 additions and 1 deletions

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