Skip to content

Commit

Permalink
Merge pull request #168 from nationalarchives/fix-no-docx-filename
Browse files Browse the repository at this point in the history
Don't change the local filename, only the stored filename
  • Loading branch information
dragon-dxw authored Apr 24, 2024
2 parents cbcbaa9 + 722aeb3 commit f7ea39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ds-caselaw-ingester/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ def process_message(message):
filename if docx_filename else modify_filename(filename, "_nodocx")
)
store_file(
open(modified_targz_filename, mode="rb"),
open(filename, mode="rb"),
uri,
os.path.basename(filename),
os.path.basename(modified_targz_filename),
s3_client,
)
print(f"saved tar.gz as {modified_targz_filename!r}")
Expand Down

0 comments on commit f7ea39d

Please sign in to comment.