Skip to content

Commit 63f64ca

Browse files
authored
Update transactions.py (#120)
Increases decimal precision in csv formating
1 parent 195d211 commit 63f64ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytr/transactions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def export_transactions(input_path, output_path, lang="auto"):
6060
if not event.is_pp_relevant:
6161
continue
6262

63-
amount = format_decimal(event.amount, locale=lang) if event.amount else ""
63+
amount = format_decimal(event.amount, locale=lang, decimal_quantization=False) if event.amount else ""
6464
note = (_(event.note) + " - " + event.title) if event.note else event.title
65-
shares = format_decimal(event.shares, locale=lang) if event.shares else ""
65+
shares = format_decimal(event.shares, locale=lang, decimal_quantization=False) if event.shares else ""
6666

6767
f.write(
6868
csv_fmt.format(

0 commit comments

Comments
 (0)