Skip to content

Commit

Permalink
checks.py: Only check entity scheme if present
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Nov 13, 2024
1 parent 0a23a2d commit 2a3d340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcovebods/tasks/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ def check_ownership_or_control_statement_first_pass(self, statement):
"type": "statement_relationship_interests_start_after_end_date",
"statement_type": None,
"start_date": start_date.strftime("%Y-%m-%d"),
"end_start": end_date.strftime("%Y-%m-%d"),
"end_date": end_date.strftime("%Y-%m-%d"),
"statement": statement.get("statementId"),
}
)
Expand Down Expand Up @@ -1906,9 +1906,9 @@ def check_entity_statement_first_pass(self, statement):
and isinstance(statement["recordDetails"]["identifiers"], list)
):
for identifier in statement["recordDetails"]["identifiers"]:
if not (
if (
"scheme" in identifier
and identifier["scheme"] in self.orgids_prefixes
and not identifier["scheme"] in self.orgids_prefixes
):
self._additional_check_results.append(
{
Expand Down

0 comments on commit 2a3d340

Please sign in to comment.