Skip to content

Commit

Permalink
add a msg show the 2 dates (bcgov#3049)
Browse files Browse the repository at this point in the history
Signed-off-by: Qin <[email protected]>
  • Loading branch information
ArwenQin authored Oct 30, 2024
1 parent 0fb2821 commit 489725a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ def validate_business_in_colin(filing_json: dict, filing_type: str) -> list:
else:
if dt.fromisoformat(founding_date) != dt.fromisoformat(response_json['business']['foundingDate']):
msg.append({
'error': 'Founding date does not match with founding date from Colin.',
'path': business_founding_date_path
'error': (
f"Founding date does not match with founding date from Colin. "
f"Filing founding_date: {founding_date}, "
f"Colin API founding_date: {response_json['business']['foundingDate']}"
),
'path': business_founding_date_path
})
return msg

0 comments on commit 489725a

Please sign in to comment.