Commit 6c879d2d authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

fix

parent 8a21368e
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -143,9 +143,9 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s
    
    
    # Run LibreOffice to refresh fields (convert docx to docx refreshes fields)
    # Run LibreOffice to refresh fields (convert docx to docx refreshes fields)
    # Then run post-processing command in the same container
    # Then run post-processing command in the same container
    soffice_cmd = f"soffice --headless --convert-to docx --outdir /data {input_path}"
    soffice_cmd = f"soffice --headless --convert-to docx --outdir /data /data/baseline/{input_path.name}"
    # TODO: Add post-processing command here
    # TODO: Add post-processing command here
    post_cmd = f'chown $(stat -c "%u:%g" /data{input_path}) /data/{input_path.name}'
    post_cmd = f'chown $(stat -c "%u:%g" /data/baseline/{input_path.name}) /data{input_path.name}'
    # combined_cmd = f"{soffice_cmd} && {post_cmd}"
    # combined_cmd = f"{soffice_cmd} && {post_cmd}"
    combined_cmd = f"{soffice_cmd} && {post_cmd}"
    combined_cmd = f"{soffice_cmd} && {post_cmd}"