Skip to content

Commit

Permalink
checks.py: Add extra field values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Nov 13, 2024
1 parent a14e356 commit 0a23a2d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions libcovebods/tasks/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
)
Expand All @@ -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"),
}
)
Expand Down Expand Up @@ -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"),
}
)
Expand Down Expand Up @@ -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"),
}
)
Expand All @@ -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"),
}
)
Expand Down Expand Up @@ -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"),
}
)
Expand Down Expand Up @@ -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"),
}
)
Expand Down

0 comments on commit 0a23a2d

Please sign in to comment.