Skip to content

Commit

Permalink
fix blob target so it doesn't include /tmp/
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Jan 2, 2025
1 parent a174dd3 commit 747a76b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobs/payment-jobs/utils/google_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"""Utility functions for Google Buckets."""
import base64
import json
import os

from flask import current_app
from google.cloud import storage
Expand All @@ -30,7 +31,7 @@ def upload_to_bucket(local_file_path: str, trg_file_path: str):
current_app.logger.info("Uploading to processing folder.")

def upload_blob_to_processing(file_path):
blob = bucket.blob(f"cgi_processing/{file_path}")
blob = bucket.blob(f"cgi_processing/{os.path.basename(file_path)}")
blob.upload_from_filename(file_path)
current_app.logger.info("Upload of %s complete.", file_path)

Expand Down

0 comments on commit 747a76b

Please sign in to comment.