summaryrefslogtreecommitdiff
path: root/searx/engines/redis_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/redis_server.py')
-rw-r--r--searx/engines/redis_server.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/engines/redis_server.py b/searx/engines/redis_server.py
index a48f0775b..f9726033d 100644
--- a/searx/engines/redis_server.py
+++ b/searx/engines/redis_server.py
@@ -31,8 +31,6 @@ def init(_engine_settings):
)
def search(query, _params):
- global _redis_client # pylint: disable=global-statement
-
if not exact_match_only:
return search_keys(query)
@@ -55,8 +53,6 @@ def search(query, _params):
return []
def search_keys(query):
- global _redis_client # pylint: disable=global-statement
-
ret = []
for key in _redis_client.scan_iter(
match='*{}*'.format(query)