Commit 1b97fd37 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

fix

parent eacec5b1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s
    # 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/{relative_path}"
        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}"