Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nwpta data contained datetime elements that were not jsonfiable #1517

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading