mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
Fix incorrect counting in sync_recordings
This commit is contained in:
parent
e5fec56893
commit
e8acfaa430
@ -98,7 +98,6 @@ def sync_recordings(
|
||||
{"id": recording.id, "path": recording.path}
|
||||
)
|
||||
|
||||
result.files_checked += recordings_count
|
||||
result.orphans_found += len(recordings_to_delete)
|
||||
result.orphan_paths.extend(
|
||||
[
|
||||
@ -173,7 +172,7 @@ def sync_recordings(
|
||||
for file in files
|
||||
}
|
||||
|
||||
result.files_checked += len(files_on_disk)
|
||||
result.files_checked = len(files_on_disk)
|
||||
|
||||
files_to_delete: list[str] = []
|
||||
for file in files_on_disk:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user