Skip to content

Commit

Permalink
nwpta data contained datetime elements that were not jsonfiable
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets committed Apr 5, 2024
1 parent bc7e19c commit 0e24ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/namex/resources/name_requests/report_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 0e24ca3

Please sign in to comment.