summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-18 12:19:14 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-18 12:29:48 +0100
commiteda8934f1548ed228d00a0196b61d35585ea11bc (patch)
treeac81fbe1a6154ad9338da92494bc9f9e3decdd75 /searx/query.py
parent995ba2f40643bd01134902eca91cacf0bab1ebdc (diff)
downloadsearxng-eda8934f1548ed228d00a0196b61d35585ea11bc.tar.gz
searxng-eda8934f1548ed228d00a0196b61d35585ea11bc.zip
[mod] searx.search.EngineRef: remove from_bang parameter
from_bang is True when the user query contains a bang. In this case the category is also set to 'none'. from_bang only usage was in searx.webadapter.parse_specific : if from_bang is True, then the EngineRef category is ignored and force to 'none'. This commit also removes the searx.webadapter.parse_sepecific function.
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/query.py b/searx/query.py
index 422cd57b5..e61e24f2c 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -125,12 +125,12 @@ class RawTextQuery:
searx_query_part = True
engine_name = engine_shortcuts[prefix]
if engine_name in engines:
- self.enginerefs.append(EngineRef(engine_name, 'none', True))
+ self.enginerefs.append(EngineRef(engine_name, 'none'))
# check if prefix is equal with engine name
elif prefix in engines:
searx_query_part = True
- self.enginerefs.append(EngineRef(prefix, 'none', True))
+ self.enginerefs.append(EngineRef(prefix, 'none'))
# check if prefix is equal with categorie name
elif prefix in categories: