From 0fbb34702860e5dba86478dfe53afcb4e5d72f81 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 22 Nov 2024 22:36:00 -0500 Subject: [PATCH] wip --- upload-sorter/sort.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/upload-sorter/sort.py b/upload-sorter/sort.py index 5cc9de7..99de019 100644 --- a/upload-sorter/sort.py +++ b/upload-sorter/sort.py @@ -1,11 +1,10 @@ #!/usr/bin/env python import time -from time import struct_time -from os import getenv import signal import sys import json +from os import getenv from pathlib import Path from PIL import Image, ExifTags, UnidentifiedImageError @@ -108,7 +107,7 @@ def sort_photos(photo_list: list[Path], ignored_files: list[str]) -> list[str]: continue # Format the date if exif[ExifTags.Base.DateTimeOriginal] is not None and exif[ExifTags.Base.DateTimeOriginal] != '': - image_timestamp: struct_time = time.strptime( + image_timestamp = time.strptime( data_string = exif[ExifTags.Base.DateTimeOriginal], format = "%Y:%m:%d %H:%M:%S" )