Skip to content

Commit

Permalink
18567 update nr_day_job query (#1505)
Browse files Browse the repository at this point in the history
* update nr_day_job query

* update the query

* update query

* update according to lint format error
  • Loading branch information
eve-git authored Dec 1, 2023
1 parent 87b0232 commit 3a0a3fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jobs/nr-day-job/nr_day_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a0a3fe

Please sign in to comment.