diff options
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/__init__.py | 4 | ||||
| -rw-r--r-- | searx/engines/duckduckgo_weather.py | 2 | ||||
| -rw-r--r-- | searx/engines/wttr.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index c8e8e7241..c9026f96d 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -45,7 +45,7 @@ ENGINE_DEFAULT_ARGS = { "about": {}, } # set automatically when an engine does not have any tab category -OTHER_CATEGORY = 'other' +DEFAULT_CATEGORY = 'other' # Defaults for the namespace of an engine module, see :py:func:`load_engine` @@ -132,7 +132,7 @@ def load_engine(engine_data: dict) -> Optional[Engine]: set_loggers(engine, engine_name) if not any(cat in settings['categories_as_tabs'] for cat in engine.categories): - engine.categories.append(OTHER_CATEGORY) + engine.categories.append(DEFAULT_CATEGORY) return engine diff --git a/searx/engines/duckduckgo_weather.py b/searx/engines/duckduckgo_weather.py index 4f0ce1b49..f239ce8f9 100644 --- a/searx/engines/duckduckgo_weather.py +++ b/searx/engines/duckduckgo_weather.py @@ -36,7 +36,7 @@ about = { send_accept_language_header = True # engine dependent config -categories = ["others"] +categories = ["weather"] URL = "https://duckduckgo.com/js/spice/forecast/{query}/{lang}" diff --git a/searx/engines/wttr.py b/searx/engines/wttr.py index d3da2748a..2eaee62ae 100644 --- a/searx/engines/wttr.py +++ b/searx/engines/wttr.py @@ -15,7 +15,7 @@ about = { "results": "JSON", } -categories = ["others"] +categories = ["weather"] url = "https://wttr.in/{query}?format=j1&lang={lang}" |