Skip to content

Commit

Permalink
chore(pipeline/transform): remove redundant if clause
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Jan 14, 2025
1 parent 435d680 commit cc7b483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monopoly/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def convert_date(transaction: Transaction, transaction_date_order: DateOrder):
# do not include year if transaction already includes date
has_year = bool(re.search(DateFormats.YYYY, transaction.date))

if not has_year and str(statement_date.year) not in transaction.date:
if not has_year:
transaction.date = f"{transaction.date} {statement_date.year}"

parsed_date = parse(
Expand Down

0 comments on commit cc7b483

Please sign in to comment.