убрал ограничение по сохранению док файла
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-08 12:17:16 +10:00
parent c9abd97efa
commit dd1c36b9de
2 changed files with 1 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ def update_bd_and_create_document(
doc.add_heading('Оригинальный текст', level=1)
doc.add_paragraph(original_text)
doc_name = f"{data['title'][:100]}.docx"
doc_name = f"{data['title']}.docx"
doc_path = os.path.join(documents_path, doc_name)
doc.save(doc_path)
print(f"Сохранен документ: {doc_path}")