mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
Fix incorrect counting in sync_recordings (#21626)
This commit is contained in:
parent
e5fec56893
commit
594a706347
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user