Skip to content

Commit

Permalink
Use black format for now
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed Sep 8, 2024
1 parent 712a1e6 commit 2a5c309
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cgt_calc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ def calculate_capital_gain(
date_index,
)
if date_index >= tax_year_start_index:
calculation_log[date_index][f"buy${symbol}"] = (
calculation_entries
)
calculation_log[date_index][
f"buy${symbol}"
] = calculation_entries
if date_index in self.disposal_list:
for symbol in self.disposal_list[date_index]:
(
Expand Down Expand Up @@ -755,9 +755,9 @@ def calculate_capital_gain(
assert transaction_capital_gain == round_decimal(
calculated_gain, 2
)
calculation_log[date_index][f"sell${symbol}"] = (
calculation_entries
)
calculation_log[date_index][
f"sell${symbol}"
] = calculation_entries
if transaction_capital_gain > 0:
capital_gain += transaction_capital_gain
else:
Expand Down

0 comments on commit 2a5c309

Please sign in to comment.