aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-03-10 21:14:40 -0800
committerclarkzjw <[email protected]>2023-03-10 21:14:40 -0800
commit78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e (patch)
treec7575cadabf63d58f230bb61ae39db971c0c0865 /bot
parentf68bb4719a4da7115953cc2ab10f20baee329741 (diff)
downloadphoto-78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e.tar.gz
update caption
Diffstat (limited to 'bot')
-rw-r--r--bot/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 37fefac..307f18f 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -111,7 +111,7 @@ def upload_to_s3(key_name: str, file: bytes):
111 print(f' {bucket["Name"]}') 111 print(f' {bucket["Name"]}')
112 return False 112 return False
113 113
114 response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="image/webp") 114 response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="application/json")
115 status = response["ResponseMetadata"]["HTTPStatusCode"] 115 status = response["ResponseMetadata"]["HTTPStatusCode"]
116 if status == 200: 116 if status == 200:
117 print("upload {} to {} succeed".format(key_name, bucket_name)) 117 print("upload {} to {} succeed".format(key_name, bucket_name))
Powered by cgit v1.2.3 (git 2.41.0)