Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGarewal committed Apr 12, 2024
1 parent 599a8d5 commit 1c1f56a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions legal-api/src/legal_api/reports/business_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _get_template_data(self, get_json=False):
business_json["business"]["businessName"] = self._legal_entity.alternate_names[0].name
else:
business_json["business"]["businessName"] = self._legal_entity.business_name

business_json["registrarInfo"] = {**RegistrarInfo.get_registrar_info(self._report_date_time)}
self._set_description(business_json)
self._set_epoch_date(business_json)
Expand Down Expand Up @@ -524,10 +524,14 @@ def _format_address(address):
def _set_meta_info(self, legal_entity: dict):
legal_entity["environment"] = f"{self._get_environment()} BUSINESS #{self._legal_entity.identifier}".lstrip()
legal_entity["meta_title"] = "Business Summary on {}".format(legal_entity["report_date_time"])
if self._legal_entity.alternate_names and self._legal_entity.legal_name == None:
legal_entity["meta_subject"] = "{} ({})".format(self._legal_entity.alternate_names[0].name, self._legal_entity.identifier)
if self._legal_entity.alternate_names and self._legal_entity.legal_name is None:
legal_entity["meta_subject"] = "{} ({})".format(
self._legal_entity.alternate_names[0].name, self._legal_entity.identifier
)
else:
legal_entity["meta_subject"] = "{} ({})".format(self._legal_entity.legal_name, self._legal_entity.identifier)
legal_entity["meta_subject"] = "{} ({})".format(
self._legal_entity.legal_name, self._legal_entity.identifier
)

@staticmethod
def _get_environment():
Expand Down

0 comments on commit 1c1f56a

Please sign in to comment.