mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Fix bug with event chunking during initial ignore of events
This commit is contained in:
@@ -125,11 +125,9 @@ class MissingEventChecker:
|
|||||||
|
|
||||||
async def ignore_missing(self):
|
async def ignore_missing(self):
|
||||||
"""Ignore missing events by adding them to the event table."""
|
"""Ignore missing events by adding them to the event table."""
|
||||||
wanted_events = await self._get_missing_events()
|
logger.info(f" Ignoring missing events")
|
||||||
|
|
||||||
logger.info(f" Ignoring {len(wanted_events)} missing events")
|
async for event in self._get_missing_events():
|
||||||
|
|
||||||
for event in wanted_events:
|
|
||||||
logger.extra_debug(f"Ignoring event '{event.id}'")
|
logger.extra_debug(f"Ignoring event '{event.id}'")
|
||||||
await self._db.execute(
|
await self._db.execute(
|
||||||
"INSERT INTO events VALUES "
|
"INSERT INTO events VALUES "
|
||||||
|
|||||||
Reference in New Issue
Block a user