diff options
author | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-04-09 18:26:29 +0200 |
---|---|---|
committer | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-04-09 19:49:59 +0200 |
commit | 8c4db08443c7a55344fa0011b89303467fa62efe (patch) | |
tree | b69569e5764823ef8fc40318f9188db54456921c /searx/query.py | |
parent | 006841c4ff481b023dccd188582a9cbac64415da (diff) | |
download | searxng-8c4db08443c7a55344fa0011b89303467fa62efe.tar.gz searxng-8c4db08443c7a55344fa0011b89303467fa62efe.zip |
rename blocked engines to diabled engines
Diffstat (limited to 'searx/query.py')
-rw-r--r-- | searx/query.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/searx/query.py b/searx/query.py index e79e760a3..3d617ab05 100644 --- a/searx/query.py +++ b/searx/query.py @@ -28,12 +28,12 @@ import re class Query(object): """parse query""" - def __init__(self, query, blocked_engines): + def __init__(self, query, disabled_engines): self.query = query - self.blocked_engines = [] + self.disabled_engines = [] - if blocked_engines: - self.blocked_engines = blocked_engines + if disabled_engines: + self.disabled_engines = disabled_engines self.query_parts = [] self.engines = [] @@ -107,7 +107,7 @@ class Query(object): self.engines.extend({'category': prefix, 'name': engine.name} for engine in categories[prefix] - if (engine.name, prefix) not in self.blocked_engines) + if (engine.name, prefix) not in self.disabled_engines) if query_part[0] == '!': self.specific = True |