add currecny

This commit is contained in:
2026-08-01 12:26:54 +02:00
parent f4cc263bb4
commit 0adf062128
+2 -1
View File
@@ -42,6 +42,7 @@ def parse_transaction(line):
"account": account, "account": account,
"amount": m.group("amount"), "amount": m.group("amount"),
"balance": balance, "balance": balance,
"currency": "EUR",
} }
@@ -78,7 +79,7 @@ def main():
all_rows.extend(extract_transactions(pdf_path)) all_rows.extend(extract_transactions(pdf_path))
with open(out_path, "w", newline="") as f: with open(out_path, "w", newline="") as f:
writer = csv.DictWriter(f, fieldnames=["date", "desc", "account", "amount", "balance"]) writer = csv.DictWriter(f, fieldnames=["date", "desc", "account", "amount", "balance", "currency"])
writer.writeheader() writer.writeheader()
writer.writerows(all_rows) writer.writerows(all_rows)