diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-03 07:27:57 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-05 11:03:44 +0100 |
commit | 6f07d51b62ebb39616ab3cf9bc2dede26229b300 (patch) | |
tree | b8464194a44f8fda576f4298952ca832c2a8589d /searx/webutils.py | |
parent | 1e195f5b95d4c59105249d66f5d170d40139a461 (diff) | |
download | searxng-6f07d51b62ebb39616ab3cf9bc2dede26229b300.tar.gz searxng-6f07d51b62ebb39616ab3cf9bc2dede26229b300.zip |
[mod] improve variable name
Diffstat (limited to 'searx/webutils.py')
-rw-r--r-- | searx/webutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webutils.py b/searx/webutils.py index 4b4b0a965..b99307600 100644 --- a/searx/webutils.py +++ b/searx/webutils.py @@ -149,8 +149,8 @@ def group_engines_in_tab(engines): return (group[0] == DEFAULT_GROUP_NAME, group[0].lower()) def get_group(eng): - non_tab_engines = [c for c in eng.categories if c not in settings['categories_as_tabs'] + [OTHER_CATEGORY]] - return non_tab_engines[0] if len(non_tab_engines) > 0 else DEFAULT_GROUP_NAME + non_tab_categories = [c for c in eng.categories if c not in settings['categories_as_tabs'] + [OTHER_CATEGORY]] + return non_tab_categories[0] if len(non_tab_categories) > 0 else DEFAULT_GROUP_NAME return [ (groupname, sorted(engines, key=engine_sort_key)) |