Don't count in progress events as duplicates

This commit is contained in:
Nicolas Mowen 2023-08-24 08:30:47 -06:00 committed by GitHub
parent 7c629c1874
commit f8532f515c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,7 @@ class EventCleanup(threading.Thread):
has_clip, has_clip,
row_number() over ( row_number() over (
partition by label, camera, round(start_time/5,0)*5 partition by label, camera, round(start_time/5,0)*5
where end_time is not null
order by end_time-start_time desc order by end_time-start_time desc
) as copy_number ) as copy_number
from event from event