This commit is contained in:
@@ -145,6 +145,7 @@ def setup_routes(app: FastAPI) -> None:
|
|||||||
for file in os.listdir(full_dir_path):
|
for file in os.listdir(full_dir_path):
|
||||||
if file.endswith('.docx'):
|
if file.endswith('.docx'):
|
||||||
file_title = file[:-5] # убираем расширение .docx
|
file_title = file[:-5] # убираем расширение .docx
|
||||||
|
file_title = file_title[:100]
|
||||||
if file_title in titles_from_db:
|
if file_title in titles_from_db:
|
||||||
all_files.append(os.path.join(full_dir_path, file))
|
all_files.append(os.path.join(full_dir_path, file))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user