Komma statt Punkt
This commit is contained in:
parent
3f0d2654f6
commit
423743323a
1 changed files with 13 additions and 1 deletions
|
|
@ -195,8 +195,20 @@ with open(csv_file, "w", newline="", encoding="utf-8") as csvfile:
|
||||||
delimiter=";"
|
delimiter=";"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
csv_export = []
|
||||||
|
|
||||||
|
for row in categorized_transactions:
|
||||||
|
csv_row = row.copy()
|
||||||
|
|
||||||
|
csv_row["amount"] = (
|
||||||
|
f"{float(row['amount']):.2f}"
|
||||||
|
.replace(".", ",")
|
||||||
|
)
|
||||||
|
|
||||||
|
csv_export.append(csv_row)
|
||||||
|
|
||||||
writer.writeheader()
|
writer.writeheader()
|
||||||
writer.writerows(categorized_transactions)
|
writer.writerows(csv_export)
|
||||||
|
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
# JSON exportieren
|
# JSON exportieren
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue