Skip to content

Commit

Permalink
Merge pull request #111 from 5Ub-Z3r0/master
Browse files Browse the repository at this point in the history
Make the swisscard importer work with the new statement CSV format.
  • Loading branch information
tarioch authored Jul 5, 2024
2 parents e2a5c88 + 6b386de commit 5d4fa30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tariochbctools/importers/swisscard/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def extract(self, file, existing_entries):
book_date = parse(row["Transaction date"].strip(), dayfirst=True).date()
amt = amount.Amount(-D(row["Amount"]), row["Currency"])
metakv = {
"category": row["Category"],
"merchant": row["Merchant Category"],
"category": row["Registered Category"],
}
meta = data.new_metadata(file.name, 0, metakv)
description = row["Description"].strip()
Expand Down

0 comments on commit 5d4fa30

Please sign in to comment.