Skip to content

Commit

Permalink
Only scan faces, when its newer then the last scan
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Jul 8, 2024
1 parent ec8551b commit 6bb1d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/directory_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6bb1d81

Please sign in to comment.