From 3e2820c8cedb6db10b0d2820f65e50460759519a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=91=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D1=83=D1=80=D0=B8=D1=81=D1=82?= Date: Tue, 5 May 2026 19:44:41 +1000 Subject: [PATCH] rer --- api/routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/routes.py b/api/routes.py index c65e405..3eabd81 100644 --- a/api/routes.py +++ b/api/routes.py @@ -137,10 +137,12 @@ def setup_routes(app: FastAPI) -> None: # 2. Собираем все файлы .docx за период all_files = [] current_date = start_date - finish_date += timedelta(days=1) while current_date <= finish_date: + print(current_date) date_path = current_date.strftime("%Y/%m/%d") + print(date_path) full_dir_path = os.path.join(DOCUMENTS_DIR, date_path) + print(full_dir_path) if os.path.exists(full_dir_path): for file in os.listdir(full_dir_path): @@ -148,6 +150,7 @@ def setup_routes(app: FastAPI) -> None: file_title = file[:-5] # убираем расширение .docx if file_title in titles_from_db: all_files.append(os.path.join(full_dir_path, file)) + print(all_files) current_date += timedelta(days=1)