Skip to content

Commit

Permalink
checks.py: Serialise all dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Oct 23, 2024
1 parent 4e727ba commit a14e356
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libcovebods/tasks/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def check_statement_first_pass(self, statement):
{
"type": "statement_source_retrieved_at_future_date",
"statement_type": None,
"retrieval_date": retrieved_at,
"retrieval_date": str(retrieved_at),
"statement": statement.get("statementId"),
}
)
Expand All @@ -846,7 +846,7 @@ def check_statement_first_pass(self, statement):
{
"type": "statement_date_is_future_date",
"statement_type": None,
"statement_date": statement_date,
"statement_date": str(statement_date),
"statement": statement.get("statementId"),
}
)
Expand Down Expand Up @@ -987,8 +987,8 @@ def check_entity_statement_first_pass(self, statement):
{
"type": "statement_entity_dissolution_before_founding_date",
"statement_type": None,
"founding_date": founding_date,
"dissolution_date": dissolution_date,
"founding_date": str(founding_date),
"dissolution_date": str(dissolution_date),
"statement": statement.get("statementId"),
}
)
Expand Down Expand Up @@ -1016,7 +1016,7 @@ def check_person_statement_first_pass(self, statement):
{
"type": "statement_person_birth_date_in_future",
"statement_type": None,
"birth_date": birth_date,
"birth_date": str(birth_date),
"statement": statement.get("statementId"),
}
)
Expand All @@ -1025,7 +1025,7 @@ def check_person_statement_first_pass(self, statement):
{
"type": "statement_person_birth_date_too_far_in_past",
"statement_type": None,
"birth_date": birth_date,
"birth_date": str(birth_date),
"statement": statement.get("statementId"),
}
)
Expand Down Expand Up @@ -1061,8 +1061,8 @@ 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,
"end_start": end_date,
"start_date": str(start_date),
"end_start": str(end_date),
"statement": statement.get("statementId"),
}
)
Expand Down

0 comments on commit a14e356

Please sign in to comment.