Commit e56b697c authored by Roman Alifanov's avatar Roman Alifanov

cleanup

parent ca2b7a56
......@@ -3,7 +3,7 @@ from gi.repository import Adw, Gtk
from .backends import backend_factory
from .daemon_client import dclient
from .tools.yml_tools import load_modules, merge_categories_by_name
from .tools.yml_tools import load_modules
from .tools.gvariant import convert_by_gvariant
from .widgets import WidgetFactory
from .widgets.panel_row import TuneItPanelRow
......
......@@ -43,15 +43,3 @@ def load_yaml_files_from_directory(directory):
except yaml.YAMLError as e:
print(f"Ошибка при чтении файла {file_path}: {e}")
return yaml_data
def merge_categories_by_name(categories_data):
categories_dict = {}
for category_data in categories_data:
category_name = category_data['name']
if category_name not in categories_dict:
categories_dict[category_name] = category_data
else:
categories_dict[category_name]['sections'].extend(
category_data['sections'])
return list(categories_dict.values())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment