Skip to content

Commit

Permalink
Changed quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
eprbell committed Dec 10, 2024
1 parent b25ac28 commit 47fed42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rp2/in_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def to_string(self, indent: int = 0, repr_format: bool = True, extra_data: Optio
stringify: Callable[[object], str] = repr
if not repr_format:
stringify = str
to_lots_string_parts = [f"{exchange}: {', '.join(t.internal_id for t in transactions)}" for exchange, transactions in self.to_lots.items()]
class_specific_data = [
f"exchange={stringify(self.exchange)}",
f"holder={stringify(self.holder)}",
Expand All @@ -147,7 +148,7 @@ def to_string(self, indent: int = 0, repr_format: bool = True, extra_data: Optio
f"fiat_taxable_amount={self.fiat_taxable_amount:.4f}",
f"from_lot={self.from_lot.internal_id if self.from_lot is not None else ''}",
# f"to_lots={', '.join(f'{exchange}: {', '.join(t.internal_id for t in transactions)}' for exchange, transactions in self.to_lots.items())}",
f"to_lots={', '.join(f'{exchange}: {', '.join([t.internal_id for t in transactions])}' for exchange, transactions in self.to_lots.items())}"
f"to_lots={', '.join(to_lots_string_parts)}"
]
if extra_data:
class_specific_data.extend(extra_data)
Expand Down

0 comments on commit 47fed42

Please sign in to comment.