aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--bot/bot.py2
-rw-r--r--site/Gemfile.lock3
-rw-r--r--site/index.html4
4 files changed, 9 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ab3415e..3336a18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
1site/_data/photos.json
1.env 2.env
2pg.yml 3pg.yml
3.idea/ 4.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):
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))
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
210 jekyll-feed (~> 0.9) 210 jekyll-feed (~> 0.9)
211 jekyll-seo-tag (~> 2.1) 211 jekyll-seo-tag (~> 2.1)
212 minitest (5.17.0) 212 minitest (5.17.0)
213 nokogiri (1.14.2-arm64-darwin)
214 racc (~> 1.4)
213 nokogiri (1.14.2-x86_64-linux) 215 nokogiri (1.14.2-x86_64-linux)
214 racc (~> 1.4) 216 racc (~> 1.4)
215 octokit (4.25.1) 217 octokit (4.25.1)
@@ -250,6 +252,7 @@ GEM
250 webrick (1.8.1) 252 webrick (1.8.1)
251 253
252PLATFORMS 254PLATFORMS
255 arm64-darwin-22
253 x86_64-linux 256 x86_64-linux
254 257
255DEPENDENCIES 258DEPENDENCIES
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
37 </a> 37 </a>
38 <figcaption> 38 <figcaption>
39 {{ photo.caption | strip | markdownify }} 39 {{ photo.caption | strip | markdownify }}
40 <span class="desc photo-exif" style="font-size:9.0pt" >
41 {{ photo.model | strip }}
42 </span>
43 <br>
40 <span class="desc photo-metadata"> 44 <span class="desc photo-metadata">
41 {{ photo.createdAt | date: "%Y/%m/%d (%a)" }} 45 {{ photo.createdAt | date: "%Y/%m/%d (%a)" }}
42 </span> 46 </span>
Powered by cgit v1.2.3 (git 2.41.0)