summaryrefslogtreecommitdiff
path: root/searx/data/__init__.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-05-24 17:53:57 +0200
committerBnyro <bnyro@tutanota.com>2025-06-23 22:12:18 +0200
commit2dd4f7b9721b201dc51cb2fb06d32cb1cb833458 (patch)
treefe74795a1a6fa06bf5761083a1e9c57428be1b3c /searx/data/__init__.py
parent58c10f758b09affda1a15c105e7ce86f3a3bdd3a (diff)
[mod] data: implement a simple tracker URL (SQL) database
On demand, the tracker data is loaded directly into the cache, so that the maintenance of this data via PRs is no longer necessary. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/data/__init__.py')
-rw-r--r--searx/data/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/data/__init__.py b/searx/data/__init__.py
index 5a859f8cd..d43879910 100644
--- a/searx/data/__init__.py
+++ b/searx/data/__init__.py
@@ -13,6 +13,7 @@ import typing
from .core import log, data_dir
from .currencies import CurrenciesDB
+from .tracker_patterns import TrackerPatternsDB
CURRENCIES: CurrenciesDB
USER_AGENTS: dict[str, typing.Any]
@@ -23,7 +24,7 @@ OSM_KEYS_TAGS: dict[str, typing.Any]
ENGINE_DESCRIPTIONS: dict[str, typing.Any]
ENGINE_TRAITS: dict[str, typing.Any]
LOCALES: dict[str, typing.Any]
-TRACKER_PATTERNS: list[dict[str, typing.Any]]
+TRACKER_PATTERNS: TrackerPatternsDB
lazy_globals = {
"CURRENCIES": CurrenciesDB(),
@@ -35,7 +36,7 @@ lazy_globals = {
"ENGINE_DESCRIPTIONS": None,
"ENGINE_TRAITS": None,
"LOCALES": None,
- "TRACKER_PATTERNS": None,
+ "TRACKER_PATTERNS": TrackerPatternsDB(),
}
data_json_files = {
@@ -47,7 +48,6 @@ data_json_files = {
"ENGINE_DESCRIPTIONS": "engine_descriptions.json",
"ENGINE_TRAITS": "engine_traits.json",
"LOCALES": "locales.json",
- "TRACKER_PATTERNS": "tracker_patterns.json",
}