Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't count in progress events as duplicates #7568

Merged
merged 2 commits into from Sep 1, 2023

Conversation

NickM-27
Copy link
Sponsor Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Aug 24, 2023

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit 0af04f4
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/64e76fc653611c000877a2bc

@NickM-27 NickM-27 marked this pull request as draft August 24, 2023 14:46
@NickM-27 NickM-27 marked this pull request as ready for review August 24, 2023 15:09
@skrashevich
Copy link
Contributor

        duplicate_query = """select id, camera, has_snapshot, has_clip
from (
    select id,
        camera,
        has_snapshot,
        has_clip,
        end_time,
        row_number() over (
            partition by label, camera, round(start_time/5,0)*5
            order by end_time-start_time desc
        ) as copy_number
    from event
    where end_time is not null
) subquery
where copy_number > 1;"""

@blakeblackshear blakeblackshear merged commit bbdf5e1 into dev Sep 1, 2023
11 checks passed
@blakeblackshear blakeblackshear deleted the duplicate-in-progress branch September 1, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants