diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2023-04-07 13:34:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 13:34:24 +0200 |
| commit | 393e14965acbf0c9a1942a249a55705be9881918 (patch) | |
| tree | 7695faab05ae377a241b0f9531b5faf93405b84c /searx/preferences.py | |
| parent | 53c154e2b1f304cc624142dff7bde30120efc029 (diff) | |
| parent | 8f79dd7659a3d837108b402dcd482910d55b57d8 (diff) | |
Merge pull request #2326 from return42/ungrouped
[mod] clarify the difference of the default category and subgrouping
Diffstat (limited to 'searx/preferences.py')
| -rw-r--r-- | searx/preferences.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index 5cee83a03..3da6d5d16 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -17,7 +17,7 @@ from searx.enginelib import Engine from searx.plugins import Plugin from searx.locales import LOCALE_NAMES from searx.webutils import VALID_LANGUAGE_CODE -from searx.engines import OTHER_CATEGORY +from searx.engines import DEFAULT_CATEGORY COOKIE_MAX_AGE = 60 * 60 * 24 * 365 * 5 # 5 years @@ -259,7 +259,7 @@ class EnginesSetting(BooleanChoices): choices = {} for engine in engines: for category in engine.categories: - if not category in list(settings['categories_as_tabs'].keys()) + [OTHER_CATEGORY]: + if not category in list(settings['categories_as_tabs'].keys()) + [DEFAULT_CATEGORY]: continue choices['{}__{}'.format(engine.name, category)] = not engine.disabled super().__init__(default_value, choices) |