From 6bb1d81bd86b33a00f276948ac5221825cd4937a Mon Sep 17 00:00:00 2001 From: Niaz Date: Mon, 8 Jul 2024 23:45:21 +0200 Subject: [PATCH] Only scan faces, when its newer then the last scan --- api/directory_watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/directory_watcher.py b/api/directory_watcher.py index ff570780de..c842b8c500 100644 --- a/api/directory_watcher.py +++ b/api/directory_watcher.py @@ -502,7 +502,7 @@ def scan_faces(user, job_id: UUID, full_scan=False): for photo in existing_photos: failed = False - if full_scan or not last_scan: + if full_scan or not last_scan or last_scan.started_at < photo.added_on: try: photo._extract_faces() except Exception: