mirror of
https://github.com/searxng/searxng.git
synced 2026-09-03 04:51:24 +00:00
[mod] engines: migrate to setup() from init() for simple tasks
This commit is contained in:
@@ -52,7 +52,7 @@ Implementations
|
||||
"""
|
||||
# pylint: disable=fixme
|
||||
|
||||
|
||||
import typing as t
|
||||
import random
|
||||
from json import loads
|
||||
from urllib.parse import urlencode
|
||||
@@ -102,7 +102,7 @@ selected randomly.
|
||||
"""
|
||||
|
||||
|
||||
def init(_):
|
||||
def setup(_: dict[str, t.Any]) -> bool | None:
|
||||
valid_types = [
|
||||
'text',
|
||||
'image',
|
||||
|
||||
Reference in New Issue
Block a user