From f8532f515cf914cae53fc750963598bbdc6388da Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 24 Aug 2023 08:30:47 -0600 Subject: [PATCH] Don't count in progress events as duplicates --- frigate/events/cleanup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/events/cleanup.py b/frigate/events/cleanup.py index d70a290d7..be35e2096 100644 --- a/frigate/events/cleanup.py +++ b/frigate/events/cleanup.py @@ -170,6 +170,7 @@ class EventCleanup(threading.Thread): has_clip, row_number() over ( partition by label, camera, round(start_time/5,0)*5 + where end_time is not null order by end_time-start_time desc ) as copy_number from event