summaryrefslogtreecommitdiff
path: root/searx/plugins/hash_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/plugins/hash_plugin.py')
-rw-r--r--searx/plugins/hash_plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/plugins/hash_plugin.py b/searx/plugins/hash_plugin.py
index 940c895a1..ab0ac010b 100644
--- a/searx/plugins/hash_plugin.py
+++ b/searx/plugins/hash_plugin.py
@@ -14,6 +14,7 @@ from searx.result_types import EngineResults
if typing.TYPE_CHECKING:
from searx.search import SearchWithPlugins
from searx.extended_types import SXNG_Request
+ from searx.plugins import PluginCfg
class SXNGPlugin(Plugin):
@@ -22,11 +23,10 @@ class SXNGPlugin(Plugin):
"""
id = "hash_plugin"
- default_on = True
keywords = ["md5", "sha1", "sha224", "sha256", "sha384", "sha512"]
- def __init__(self):
- super().__init__()
+ def __init__(self, plg_cfg: "PluginCfg") -> None:
+ super().__init__(plg_cfg)
self.parser_re = re.compile(f"({'|'.join(self.keywords)}) (.*)", re.I)
self.info = PluginInfo(