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/solr.py | |
| parent | fd29de6c55e81524172744d9f36917c271dd01b9 (diff) | |
[mod] engines: migrate to setup() from init() for simple tasks
Diffstat (limited to 'searx/engines/solr.py')
| -rw-r--r-- | searx/engines/solr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/solr.py b/searx/engines/solr.py index b23cbe92e..3e0388d85 100644 --- a/searx/engines/solr.py +++ b/searx/engines/solr.py @@ -28,7 +28,7 @@ This is an example configuration for searching in the collection """ # pylint: disable=global-statement - +import typing as t from urllib.parse import urlencode from searx.exceptions import SearxEngineAPIException from searx.result_types import EngineResults @@ -46,7 +46,7 @@ _search_url = '' paging = True -def init(_): +def setup(_: dict[str, t.Any]) -> bool | None: if collection == '': raise ValueError('collection cannot be empty') |
