diff options
Diffstat (limited to 'searx/settings_defaults.py')
| -rw-r--r-- | searx/settings_defaults.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index bb91ed855..e84b442fe 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -20,18 +20,18 @@ OUTPUT_FORMATS = ['html', 'csv', 'json', 'rss'] LANGUAGE_CODES = ['all'] + list(l[0] for l in languages) OSCAR_STYLE = ('logicodev', 'logicodev-dark', 'pointhi') SIMPLE_STYLE = ('auto', 'light', 'dark') -CATEGORY_ORDER = [ - 'general', - 'images', - 'videos', - 'news', - 'map', - 'music', - 'it', - 'science', - 'files', - 'social media', -] +CATEGORIES_AS_TABS = { + 'general': {}, + 'images': {}, + 'videos': {}, + 'news': {}, + 'map': {}, + 'music': {}, + 'it': {}, + 'science': {}, + 'files': {}, + 'social media': {}, +} STR_TO_BOOL = { '0': False, 'false': False, @@ -182,7 +182,6 @@ SCHEMA = { 'results_on_new_tab': SettingsValue(bool, False), 'advanced_search': SettingsValue(bool, False), 'query_in_title': SettingsValue(bool, False), - 'categories_order': SettingsValue(list, CATEGORY_ORDER), }, 'preferences': { 'lock': SettingsValue(list, []), @@ -213,6 +212,7 @@ SCHEMA = { 'checker': { 'off_when_debug': SettingsValue(bool, True), }, + 'categories_as_tabs': SettingsValue(dict, CATEGORIES_AS_TABS), 'engines': SettingsValue(list, []), 'doi_resolvers': {}, } |