Skip to content

Commit

Permalink
Merge pull request #1570 from stevenc987/main
Browse files Browse the repository at this point in the history
Create 2 new API requests for the Home Team #22774
  • Loading branch information
stevenc987 authored Aug 30, 2024
2 parents 4f8dc06 + dc683df commit cd550f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/namex/resources/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ def patch(nr, *args, **kwargs):

# do the cheap check first before the more expensive ones
# check states
# some nr requested from Legancy application includes %20 after NR. e.g. 'NR%209288253', which should be 'NR 9288253'
nr = nr.replace("%20", " ")
current_app.logger.debug("NR: {0}".format(nr))

json_input = request.get_json()
if not json_input:
return make_response(jsonify({'message': 'No input data provided'}), 400)
Expand Down

0 comments on commit cd550f7

Please sign in to comment.