From 0e24ca3afcde468c8ae0539348c733826aeac8fb Mon Sep 17 00:00:00 2001 From: bolyachevets Date: Thu, 4 Apr 2024 21:31:30 -0700 Subject: [PATCH] nwpta data contained datetime elements that were not jsonfiable --- api/namex/resources/name_requests/report_resource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/namex/resources/name_requests/report_resource.py b/api/namex/resources/name_requests/report_resource.py index bce104074..f139839f0 100644 --- a/api/namex/resources/name_requests/report_resource.py +++ b/api/namex/resources/name_requests/report_resource.py @@ -187,7 +187,7 @@ def _get_report(nr_model): @staticmethod def _get_report_filename(nr_model): - return 'NR {}.pdf'.format(nr_model.nrNum).replace(' ', '_') + return '{}.pdf'.format(nr_model.nrNum).replace(' ', '_') @staticmethod def _get_template(): @@ -281,6 +281,7 @@ def _get_template_data(nr_model): nr_report_json['retrievalDateTime'] = datetime.now().astimezone(timezone('US/Pacific')).strftime(DATE_FORMAT) nr_report_json['hasUnreviewedNames'] = ReportResource._hasUnReviewedNames(nr_report_json['names']) + nr_report_json['nwpta'] = [] return nr_report_json