add currecny
This commit is contained in:
+2
-1
@@ -42,6 +42,7 @@ def parse_transaction(line):
|
||||
"account": account,
|
||||
"amount": m.group("amount"),
|
||||
"balance": balance,
|
||||
"currency": "EUR",
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +79,7 @@ def main():
|
||||
all_rows.extend(extract_transactions(pdf_path))
|
||||
|
||||
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.writerows(all_rows)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user