diff --git a/services/document_builder.py b/services/document_builder.py index 7c12247..a153a98 100644 --- a/services/document_builder.py +++ b/services/document_builder.py @@ -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'][:200]}.docx" + doc_name = f"{data['title'][:100]}.docx" doc_path = os.path.join(documents_path, doc_name) doc.save(doc_path) print(f"Сохранен документ: {doc_path}")