Skip to content

Commit

Permalink
Merge pull request #1576 from stevenc987/main
Browse files Browse the repository at this point in the history
Auth -Search Name Request - Cancelled Name Request should not be selected#19703
  • Loading branch information
stevenc987 authored Sep 25, 2024
2 parents 85a0c62 + 95a2222 commit 3d943df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/namex/VERSION.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.7'
__version__ = '1.2.8'
2 changes: 1 addition & 1 deletion api/namex/resources/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def _get_next_set_from_solr(solr_query, start, rows):
have_more_data = results['response']['numFound'] > (start + rows)
identifiers = [name['nr_num'] for name in results['names']]
return RequestDAO.query.filter(
RequestDAO.nrNum.in_(identifiers),
RequestDAO.nrNum.in_(identifiers), RequestDAO.stateCd != State.CANCELLED,
or_(RequestDAO.stateCd != State.EXPIRED,
text(f"(requests.state_cd = '{State.EXPIRED}' AND CAST(requests.expiration_date AS DATE) + "
"interval '60 day' >= CAST(now() AS DATE))"))
Expand Down

0 comments on commit 3d943df

Please sign in to comment.