Skip to content

Commit

Permalink
remove hhmmss to timestamp of s3-file
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpham54 committed Dec 19, 2024
1 parent fd06b0c commit 7f3dadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jp2_remediator/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def process_s3_file(self, input_bucket, input_key, output_bucket, output_prefix=

# Generate the output key dynamically if not explicitly provided
if not output_key:
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
timestamp = datetime.datetime.now().strftime("%Y%m%d")
output_key = os.path.join(
output_prefix,
os.path.basename(input_key).replace(".jp2", f"_modified_file_{timestamp}.jp2")
Expand Down

0 comments on commit 7f3dadf

Please sign in to comment.