From b6bd81390a9601d025907a985fde48e20436fffb Mon Sep 17 00:00:00 2001 From: Justin Merrell Date: Tue, 16 May 2023 23:00:28 -0400 Subject: [PATCH] fix: upload multiple images --- src/rp_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rp_handler.py b/src/rp_handler.py index 02600ed..442417c 100644 --- a/src/rp_handler.py +++ b/src/rp_handler.py @@ -57,7 +57,8 @@ def run(job): job_output = [] for index, img_path in enumerate(img_paths): - image_url = upload_file_to_bucket(job['id'], img_path, index) + file_name = f"{job['id']}_{index}.png" + image_url = upload_file_to_bucket(file_name, img_path) job_output.append({ "image": image_url,