From 78d996f287ecc2c4ab8c4580f8d2ba0a1eed963e Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 10 Mar 2023 21:14:40 -0800 Subject: update caption --- .gitignore | 1 + bot/bot.py | 2 +- site/Gemfile.lock | 3 +++ site/index.html | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ab3415e..3336a18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +site/_data/photos.json .env pg.yml .idea/ 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): print(f' {bucket["Name"]}') return False - response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="image/webp") + response = client.put_object(Body=file, Bucket=bucket_name, Key=key_name, ContentType="application/json") status = response["ResponseMetadata"]["HTTPStatusCode"] if status == 200: print("upload {} to {} succeed".format(key_name, bucket_name)) diff --git a/site/Gemfile.lock b/site/Gemfile.lock index 1cb0959..df95b15 100644 --- a/site/Gemfile.lock +++ b/site/Gemfile.lock @@ -210,6 +210,8 @@ GEM jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) minitest (5.17.0) + nokogiri (1.14.2-arm64-darwin) + racc (~> 1.4) nokogiri (1.14.2-x86_64-linux) racc (~> 1.4) octokit (4.25.1) @@ -250,6 +252,7 @@ GEM webrick (1.8.1) PLATFORMS + arm64-darwin-22 x86_64-linux DEPENDENCIES diff --git a/site/index.html b/site/index.html index 8071de9..f8b34a1 100644 --- a/site/index.html +++ b/site/index.html @@ -37,6 +37,10 @@ title: Photos
{{ photo.caption | strip | markdownify }} + + {{ photo.model | strip }} + +
-- cgit v1.2.3