diff --git a/scripts/import_board_documents_2_2026.py b/scripts/import_board_documents_2_2026.py index 6f76738..cbb5f58 100644 --- a/scripts/import_board_documents_2_2026.py +++ b/scripts/import_board_documents_2_2026.py @@ -79,8 +79,9 @@ def main(): print(f"Uploader: {uploader.name} (id={uploader.id})") - # Create target directory - target_dir = os.path.join(UPLOAD_BASE, '2026', '02') + # Create target directory (use current date, matching DocumentUploadService logic) + now = datetime.now() + target_dir = os.path.join(UPLOAD_BASE, str(now.year), f"{now.month:02d}") os.makedirs(target_dir, exist_ok=True) print(f"Target directory: {target_dir}")