Komma statt Punkt

This commit is contained in:
hubobel 2026-06-16 13:13:13 +02:00
parent 3f0d2654f6
commit 423743323a

View file

@ -195,8 +195,20 @@ with open(csv_file, "w", newline="", encoding="utf-8") as csvfile:
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.writerows(categorized_transactions)
writer.writerows(csv_export)
# --------------------------------------------------
# JSON exportieren