Commit 3a260b19 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

fix

parent 1b97fd37
Loading
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -147,16 +147,9 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s
    # Calculate relative path from mount point to file
    # If file is at /data/baseline/file.docx, relative path is baseline/file.docx
    # If file is at /data/file.docx, relative path is file.docx
    try:
        relative_path = input_path.relative_to(mount_point)
    file_path_in_container = f"/data/{input_path.parent.name}/{input_path.name}"
    except ValueError:
        # If file is not under /data, use just the filename
        file_path_in_container = f"/data/{input_path.name}"
        relative_path = input_path.name
    
    print(f"📂 Mount point: {mount_point}")
    print(f"📂 Relative path: {relative_path}")
    print(f"📂 File path in container: {file_path_in_container}")
    
    # Run LibreOffice to refresh fields (convert docx to docx refreshes fields)