diff options
author | clarkzjw <[email protected]> | 2023-03-10 20:47:52 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-03-10 20:47:52 -0800 |
commit | 678496cc0757951478d16f8bd18c244dc581de40 (patch) | |
tree | 4d6272638f0fd3b76ed1affbffad44a84b4d11eb /bot | |
parent | eecacbedb578bfae5d062245aa3185ad9cf3954c (diff) | |
download | photo-678496cc0757951478d16f8bd18c244dc581de40.tar.gz |
bot: update datetime
Diffstat (limited to 'bot')
-rw-r--r-- | bot/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -156,7 +156,7 @@ async def process(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | |||
156 | if ExifTags.TAGS[key] == "Model": | 156 | if ExifTags.TAGS[key] == "Model": |
157 | camera_model = val | 157 | camera_model = val |
158 | elif ExifTags.TAGS[key] == "DateTime": | 158 | elif ExifTags.TAGS[key] == "DateTime": |
159 | shot_datetime = val | 159 | shot_datetime = datetime.strptime(val, "%Y:%m:%d %H:%M:%S") |
160 | 160 | ||
161 | output = io.BytesIO() | 161 | output = io.BytesIO() |
162 | im.save(output, format="webp", lossless=False, quality=80) | 162 | im.save(output, format="webp", lossless=False, quality=80) |