diff --git a/frigate/record/export.py b/frigate/record/export.py index 8b2f487be..70b9159a4 100644 --- a/frigate/record/export.py +++ b/frigate/record/export.py @@ -66,7 +66,7 @@ class RecordingExporter(threading.Thread): .where( Recordings.start_time.between(self.start_time, self.end_time) | Recordings.end_time.between(self.start_time, self.end_time) - | ((self.start > Recordings.start_time) & (self.end_time < Recordings.end_time)) + | ((self.start_time > Recordings.start_time) & (self.end_time < Recordings.end_time)) ) .where(Recordings.camera == self.camera) .order_by(Recordings.start_time.asc())