diff --git a/src/rp2/in_transaction.py b/src/rp2/in_transaction.py index d1ab0bb..219094f 100644 --- a/src/rp2/in_transaction.py +++ b/src/rp2/in_transaction.py @@ -146,7 +146,7 @@ def to_string(self, indent: int = 0, repr_format: bool = True, extra_data: Optio f"is_taxable={stringify(self.is_taxable())}", 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())}", ] if extra_data: class_specific_data.extend(extra_data)