Skip to content

Commit

Permalink
Refactor to only 1 day in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Jan 20, 2025
1 parent 5b4d0c1 commit bf396f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ interface DBLogbookReportRepository :
SELECT *
FROM logbook_reports
WHERE referenced_report_id IN (select report_id FROM dat_cor)
AND operation_datetime_utc >= cast(:startDate AS TIMESTAMP) - INTERVAL '3 days'
AND operation_datetime_utc >= cast(:startDate AS TIMESTAMP) - INTERVAL '1 day'
AND operation_datetime_utc <= cast(:endDate AS TIMESTAMP) + INTERVAL '3 days'
AND operation_type = 'RET'
AND NOT is_test_message
Expand Down Expand Up @@ -383,7 +383,7 @@ interface DBLogbookReportRepository :
FROM logbook_reports
WHERE
referenced_report_id IN (select report_id FROM dat_cor) AND
operation_datetime_utc >= cast(?2 AS timestamp) - INTERVAL '3 days' AND
operation_datetime_utc >= cast(?2 AS timestamp) - INTERVAL '1 day' AND
operation_datetime_utc < cast(?3 AS timestamp) + INTERVAL '3 days' AND
operation_type = 'RET'
AND NOT is_test_message
Expand Down

0 comments on commit bf396f1

Please sign in to comment.