From 3a0a3fe6c6ca0a0fd99e17e0a8736a8141a34ec3 Mon Sep 17 00:00:00 2001 From: eve-git <54647458+eve-git@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:43:34 -0800 Subject: [PATCH] 18567 update nr_day_job query (#1505) * update nr_day_job query * update the query * update query * update according to lint format error --- jobs/nr-day-job/nr_day_job.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jobs/nr-day-job/nr_day_job.py b/jobs/nr-day-job/nr_day_job.py index c3e43ea18..9232913b6 100644 --- a/jobs/nr-day-job/nr_day_job.py +++ b/jobs/nr-day-job/nr_day_job.py @@ -94,8 +94,7 @@ def notify_nr_before_expiry(): current_app.logger.debug('entering notify_nr_before_expiry') where_clause = text( - "expiration_date::DATE - interval '14 day' <= CURRENT_DATE" \ - "and expiration_date::DATE > CURRENT_DATE") + "expiration_date::DATE - interval '14 day' <= CURRENT_DATE and expiration_date::DATE > CURRENT_DATE") requests = db.session.query(Request).filter( Request.stateCd.in_((State.APPROVED, State.CONDITIONAL)), Request.notifiedBeforeExpiry == False, # noqa E712; pylint: disable=singleton-comparison