From 121993abcd66b895a0c6718b570222815c216de9 Mon Sep 17 00:00:00 2001 From: DiamondDemon669 <62653580+DiamondDemon669@users.noreply.github.com> Date: Fri, 22 Jul 2022 00:26:38 +0100 Subject: [PATCH] Small bugfix --- searx/plugins/query_strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/plugins/query_strings.py b/searx/plugins/query_strings.py index ee7b5f583..af0e31cc4 100644 --- a/searx/plugins/query_strings.py +++ b/searx/plugins/query_strings.py @@ -13,9 +13,9 @@ def on_result(request, search, result): siteitems = [x.lower() for x in qs if x.startswith('site:')] msiteitems = [x.lower() for x in qs if x.startswith('-site:')] url, title, content = result["url"].lower(), result["title"].lower(), (result.get("content").lower() if result.get("content") else '') - if all(x not in (title or content) for x in spitems): + if all((x not in title or x not in content) for x in spitems): return False - if all(x in (title or content) for x in mitems): + if all((x in title or x in content) for x in mitems): return False if all(x not in url for x in siteitems): return False