From 592c0f566dc4583378947d8c6915717ee9ed65c8 Mon Sep 17 00:00:00 2001 From: ansi0 <{ID}+{username}@users.noreply.github.com> Date: Fri, 7 Jun 2024 01:06:02 +0300 Subject: [PATCH] fixed extension check for extracted image files --- totalrecall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/totalrecall.py b/totalrecall.py index bc71249..05d5c04 100644 --- a/totalrecall.py +++ b/totalrecall.py @@ -83,7 +83,7 @@ def main(from_date=None, to_date=None, search_term=None): for image_file in os.listdir(os.path.join(extraction_folder, "ImageStore")): image_path = os.path.join(extraction_folder, "ImageStore", image_file) new_image_path = f"{image_path}.jpg" - if not new_image_path.endswith(".jpg"): + if not image_path.endswith(".jpg"): os.rename(image_path, new_image_path) db_extraction_path = os.path.join(extraction_folder, "ukg.db")