Skip to content

Commit

Permalink
Exclude notifications created more than 4 months ago
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Feb 1, 2024
1 parent 1b79703 commit ae02a67
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
query = "SELECT DISTINCT(n.orcid), COALESCE(p.completed_date, p.date_created)" +
" FROM notification n, email_frequency f, profile p " +
" WHERE n.sent_date IS NULL " +
" AND n.date_created > now() - INTERVAL '4' MONTH" +
" AND n.archived_date IS NULL " +
" AND n.orcid = p.orcid " +
" AND p.claimed = true " +
Expand Down

0 comments on commit ae02a67

Please sign in to comment.