diff --git a/libcovebods/tasks/checks.py b/libcovebods/tasks/checks.py index 9770160..b4e86d6 100644 --- a/libcovebods/tasks/checks.py +++ b/libcovebods/tasks/checks.py @@ -938,6 +938,7 @@ def check_person_statement_first_pass(self, statement): { "type": "statement_person_death_date_not_sensible_value", "statement_type": None, + "death_date": death_date.strftime("%Y-%m-%d"), "statement": statement.get("statementId"), } ) @@ -956,6 +957,7 @@ def check_person_statement_first_pass(self, statement): { "type": "statement_person_death_date_not_sensible_value", "statement_type": None, + "death_date": death_date.strftime("%Y-%m-%d"), "statement": statement.get("statementId"), } ) @@ -987,8 +989,8 @@ def check_entity_statement_first_pass(self, statement): { "type": "statement_entity_dissolution_before_founding_date", "statement_type": None, - "founding_date": str(founding_date), - "dissolution_date": str(dissolution_date), + "founding_date": founding_date.strftime("%Y-%m-%d"), + "dissolution_date": dissolution_date.strftime("%Y-%m-%d"), "statement": statement.get("statementId"), } ) @@ -1016,7 +1018,7 @@ def check_person_statement_first_pass(self, statement): { "type": "statement_person_birth_date_in_future", "statement_type": None, - "birth_date": str(birth_date), + "birth_date": birth_date.strftime("%Y-%m-%d"), "statement": statement.get("statementId"), } ) @@ -1025,7 +1027,7 @@ def check_person_statement_first_pass(self, statement): { "type": "statement_person_birth_date_too_far_in_past", "statement_type": None, - "birth_date": str(birth_date), + "birth_date": birth_date.strftime("%Y-%m-%d"), "statement": statement.get("statementId"), } ) @@ -1061,8 +1063,8 @@ def check_ownership_or_control_statement_first_pass(self, statement): { "type": "statement_relationship_interests_start_after_end_date", "statement_type": None, - "start_date": str(start_date), - "end_start": str(end_date), + "start_date": start_date.strftime("%Y-%m-%d"), + "end_start": end_date.strftime("%Y-%m-%d"), "statement": statement.get("statementId"), } ) @@ -1156,6 +1158,7 @@ def check_ownership_or_control_statement_first_pass(self, statement): { "type": "statement_relationship_interests_exact_has_min_max", "statement_type": None, + "share_exact": share["exact"], "statement": statement.get("statementId"), } )