diff options
| author | Om Alve <om@turboml.com> | 2026-08-23 18:26:13 +0530 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-09-02 16:30:00 +0200 |
| commit | b4f616fed70b0598a1817fb828c0cce29d0451be (patch) | |
| tree | b0133d0ea0d822b1e907983eb5ac8102ab51ff79 /searx/engines/tiger.py | |
| parent | fd29de6c55e81524172744d9f36917c271dd01b9 (diff) | |
[mod] engines: migrate to setup() from init() for simple tasks
Diffstat (limited to 'searx/engines/tiger.py')
| -rw-r--r-- | searx/engines/tiger.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/tiger.py b/searx/engines/tiger.py index bf89d62ff..a7b429a89 100644 --- a/searx/engines/tiger.py +++ b/searx/engines/tiger.py @@ -45,12 +45,10 @@ CACHE: EngineCache """Cache to store session codes (result of solved CAPTCHA).""" -def init(_): +def setup(engine_settings: dict[str, t.Any]) -> bool: if tiger_category not in ("Websuche", "News"): raise ValueError("invalid search category: %s" % tiger_category) - -def setup(engine_settings: dict[str, t.Any]) -> bool: global CACHE # pylint: disable=global-statement CACHE = EngineCache(engine_settings["name"]) return True |
