Skip to content

Commit

Permalink
Update transactions.py (#120)
Browse files Browse the repository at this point in the history
Increases decimal precision in csv formating
  • Loading branch information
pinzutu authored Sep 23, 2024
1 parent 195d211 commit 63f64ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytr/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def export_transactions(input_path, output_path, lang="auto"):
if not event.is_pp_relevant:
continue

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

f.write(
csv_fmt.format(
Expand Down

0 comments on commit 63f64ca

Please sign in to comment.