Commit 16827c10 authored by Roman Alifanov's avatar Roman Alifanov

small fix

parent d16e2560
......@@ -60,6 +60,8 @@ def load_yaml_files_from_directory(directory):
print(f"Ошибка при чтении файла {file_path}: {e}")
for module in yaml_data:
module['sections'] = sections_data
if 'sections' in module:
module['sections'].extend(sections_data)
else:
module['sections'] = sections_data
return yaml_data
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