Skip to content

Commit

Permalink
Upload backup of PI file after processing
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanMPhm committed May 7, 2024
1 parent cd231b4 commit 0eefaca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions process_report/process_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ def fetch_s3_old_pi_file():
local_name = "PI.csv"
invoice_bucket = get_invoice_bucket()
invoice_bucket.download_file("PIs/PI.csv", local_name)
invoice_bucket.upload_file(
local_name, f"PIs/Archive/PI {get_iso8601_time()}.csv"
) # Create backup when fetching
return local_name


Expand Down

0 comments on commit 0eefaca

Please sign in to comment.