Fix incorrect counting in sync_recordings (#21626)

This commit is contained in:
Josh Hawkins 2026-01-12 19:25:07 -06:00 committed by GitHub
parent e5fec56893
commit 594a706347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,6 @@ def sync_recordings(
{"id": recording.id, "path": recording.path} {"id": recording.id, "path": recording.path}
) )
result.files_checked += recordings_count
result.orphans_found += len(recordings_to_delete) result.orphans_found += len(recordings_to_delete)
result.orphan_paths.extend( result.orphan_paths.extend(
[ [
@ -173,7 +172,7 @@ def sync_recordings(
for file in files for file in files
} }
result.files_checked += len(files_on_disk) result.files_checked = len(files_on_disk)
files_to_delete: list[str] = [] files_to_delete: list[str] = []
for file in files_on_disk: for file in files_on_disk: