Commit 37552687 authored by Jan Reimes's avatar Jan Reimes
Browse files

♻️ refactor(extraction): remove redundant import of shutil and datetime

parent 0111d59d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ from __future__ import annotations
import json
import re
from dataclasses import dataclass, field
from datetime import UTC
from datetime import UTC, datetime
from pathlib import Path
from typing import NotRequired, TypedDict

@@ -220,8 +220,6 @@ class WorkspaceMetadata:
        compile_hash: str,
    ) -> None:
        """Update wiki build health metadata after a compile run."""
        from datetime import datetime

        self.wiki_build_timestamp = datetime.now(UTC).isoformat()
        self.wiki_page_count = page_count
        self.wiki_failed_pages = failed_pages
+1 −2
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ supporting both local LibreOffice conversion and remote API fallback.
from __future__ import annotations

import os
import shutil
import tempfile
from dataclasses import dataclass
from enum import Enum
@@ -167,8 +168,6 @@ def ensure_pdf(
    Returns:
        Path to the PDF file.
    """
    import shutil

    pdf_path = output_dir / f"{source_file.stem}.pdf"

    if pdf_path.exists() and not force: