mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-21 23:58:22 +03:00
filter dicts to only use id field in sync recordings
This commit is contained in:
parent
e10ea2e071
commit
276a86c367
@ -151,7 +151,9 @@ def sync_recordings(
|
|||||||
|
|
||||||
max_inserts = 1000
|
max_inserts = 1000
|
||||||
for batch in chunked(recordings_to_delete, max_inserts):
|
for batch in chunked(recordings_to_delete, max_inserts):
|
||||||
RecordingsToDelete.insert_many(batch).execute()
|
RecordingsToDelete.insert_many(
|
||||||
|
[{"id": r["id"]} for r in batch]
|
||||||
|
).execute()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
deleted = (
|
deleted = (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user