From 57e7e3bbf6da3c94f3f4e6f98edbb30b281d03a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 29 Sep 2022 22:58:43 +0200 Subject: [PATCH] fix issue reported by linter --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 9f5a004b..8c1d57ac 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -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