Verified Commit 301a2d4a authored by Jakob Moser's avatar Jakob Moser
Browse files

Improve __str__ method even more

I think now we have the de-facto most tabular data we can get without actually knowing what the longest entry in each cell is
parent 7dcae02b
Loading
Loading
Loading
Loading
+1 −1
Changes for poolpay/model/Transaction.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -75,4 +75,4 @@ class Transaction(Base):
        return cls.date

    def __str__(self) -> str:
        return f"{self.date.isoformat()} {self.amount_cents/100:+7.2f} € [{self.posting_text}] {self.partner}: \"{self.purpose}\""
        return f"{self.date.isoformat()} {self.amount_cents/100:+7.2f} € [{self.posting_text:>11}] \"{self.purpose}\" {self.partner}"