mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Fix skipping overlapping events on chunk boundary
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user