forked from Ponysearch/Ponysearch
[mod] improve variable name
This commit is contained in:
parent
1e195f5b95
commit
6f07d51b62
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ def group_engines_in_tab(engines):
|
||||||
return (group[0] == DEFAULT_GROUP_NAME, group[0].lower())
|
return (group[0] == DEFAULT_GROUP_NAME, group[0].lower())
|
||||||
|
|
||||||
def get_group(eng):
|
def get_group(eng):
|
||||||
non_tab_engines = [c for c in eng.categories if c not in settings['categories_as_tabs'] + [OTHER_CATEGORY]]
|
non_tab_categories = [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
|
return non_tab_categories[0] if len(non_tab_categories) > 0 else DEFAULT_GROUP_NAME
|
||||||
|
|
||||||
return [
|
return [
|
||||||
(groupname, sorted(engines, key=engine_sort_key))
|
(groupname, sorted(engines, key=engine_sort_key))
|
||||||
|
|
Loading…
Reference in a new issue