diff --git a/libcovebods/tasks/checks.py b/libcovebods/tasks/checks.py index b4e86d6..1258a2b 100644 --- a/libcovebods/tasks/checks.py +++ b/libcovebods/tasks/checks.py @@ -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"), } ) @@ -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( {