From 00ea5889eb518c67ffce59a4dec86bbbd3202e62 Mon Sep 17 00:00:00 2001 From: semmatti <144159881+semmatti@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:35:27 -0700 Subject: [PATCH] set consent flag to received so report is accurate (#1525) --- api/namex/resources/name_requests/report_resource.py | 1 + api/report-templates/nameRequest.html | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/api/namex/resources/name_requests/report_resource.py b/api/namex/resources/name_requests/report_resource.py index eb7fc6eff..f94e261af 100644 --- a/api/namex/resources/name_requests/report_resource.py +++ b/api/namex/resources/name_requests/report_resource.py @@ -41,6 +41,7 @@ def email_consent_letter(self, nr_id): nr_model = Request.query.get(nr_id) if not nr_model: return jsonify(message='{nr_id} not found'.format(nr_id=nr_model.id)), HTTPStatus.NOT_FOUND + nr_model.consentFlag = 'R' # invariant: this function is only called when the consent letter has been received report, status_code = ReportResource._get_report(nr_model) if status_code != HTTPStatus.OK: return jsonify(message=str(report)), status_code diff --git a/api/report-templates/nameRequest.html b/api/report-templates/nameRequest.html index 80b50161f..a689d7f06 100644 --- a/api/report-templates/nameRequest.html +++ b/api/report-templates/nameRequest.html @@ -66,9 +66,15 @@