From a14ff1bf301da1d12fc6d1df30537e20c7015438 Mon Sep 17 00:00:00 2001 From: Dobby <124944123+DobbyAHouseElf@users.noreply.github.com> Date: Sat, 26 Jul 2025 21:42:53 +0100 Subject: [PATCH] Fix skipping overlapping events on chunk boundary --- unifi_protect_backup/missing_event_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unifi_protect_backup/missing_event_checker.py b/unifi_protect_backup/missing_event_checker.py index 2532836..ccc6c45 100644 --- a/unifi_protect_backup/missing_event_checker.py +++ b/unifi_protect_backup/missing_event_checker.py @@ -83,8 +83,8 @@ class MissingEventChecker: if not unifi_events: break # No completed events to process - # Next chunks start time should be the end of the oldest complete event in the current chunk - start_time = max([event.end for event in unifi_events.values() if event.end is not None]) + # Next chunks start time should be the start of the oldest complete event in the current chunk + start_time = max([event.start for event in unifi_events.values() if event.end is not None]) # Get list of events that have been backed up from the database