mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 07:49:22 +02:00
[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.
This commit is contained in:
parent
995ba2f406
commit
eda8934f15
5 changed files with 12 additions and 24 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue