Skip to content

Commit

Permalink
Count only infraction reportings in prior notification SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed May 29, 2024
1 parent b885943 commit c54588d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ interface DBLogbookReportRepository :
FROM distinct_cfrs dc
LEFT JOIN reportings r ON dc.cfr = r.internal_reference_number
WHERE
r.archived = FALSE
r.type = 'INFRACTION_SUSPICION'
AND r.archived = FALSE
AND r.deleted = FALSE
GROUP BY cfr
),
Expand Down

0 comments on commit c54588d

Please sign in to comment.