From 36c5e472ac66f55929fa9650dabe39e1314df33a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 23 Jan 2025 08:22:06 +0100 Subject: [PATCH] Don't hide 0.00 amounts. --- ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger.py b/ledger.py index 413b8fb..80b6099 100755 --- a/ledger.py +++ b/ledger.py @@ -166,7 +166,7 @@ class TransferLine(BookingLine): @property def amount_short(self) -> str: """If no .amount, '', else printed – but if too long, ellipsized.""" - if self.amount: + if self.amount is not None: exp = self.amount.as_tuple().exponent assert isinstance(exp, int) return f'{self.amount:.1f}…' if exp < -2 else f'{self.amount:.2f}' -- 2.30.2