diff options
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) |