This commit is contained in:
Nick Mowen 2023-07-20 11:41:02 -06:00
parent e759fe4a55
commit 913d0e630e

View File

@ -161,7 +161,9 @@ class RecordingMaintainer(threading.Thread):
) )
recordings_to_insert: list[Optional[Recordings]] = await asyncio.gather(*tasks) recordings_to_insert: list[Optional[Recordings]] = await asyncio.gather(*tasks)
Recordings.insert_many([r for r in recordings_to_insert if r is not None]) Recordings.insert_many(
[r for r in recordings_to_insert if r is not None]
).execute()
async def validate_and_move_segment( async def validate_and_move_segment(
self, camera: str, events: Event, recording: dict[str, any] self, camera: str, events: Event, recording: dict[str, any]