Skip to content

Commit

Permalink
Increase RET search to 3 days
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Jan 17, 2025
1 parent c217dd9 commit b85f2f2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ 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 '1 day'
AND operation_datetime_utc <= cast(:endDate AS TIMESTAMP) + INTERVAL '1 day'
AND operation_datetime_utc >= cast(:startDate AS TIMESTAMP) - INTERVAL '3 days'
AND operation_datetime_utc <= cast(:endDate AS TIMESTAMP) + INTERVAL '3 days'
AND operation_type = 'RET'
AND NOT is_test_message
)
Expand Down Expand Up @@ -382,8 +382,8 @@ 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 '1 day' AND
operation_datetime_utc < cast(?3 AS timestamp) + INTERVAL '1 day' AND
operation_datetime_utc >= cast(?2 AS timestamp) - INTERVAL '3 days' AND
operation_datetime_utc < cast(?3 AS timestamp) + INTERVAL '3 days' AND
operation_type = 'RET'
AND NOT is_test_message
ORDER BY operation_datetime_utc DESC
Expand Down

0 comments on commit b85f2f2

Please sign in to comment.