From 4f3a2dcc97c61209922bfe201601173538d8f483 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 27 Jan 2025 07:46:45 +0100 Subject: [PATCH] Further refine balance layout. --- ledger.py | 7 ----- templates/_base.tmpl | 4 +-- templates/_macros.tmpl | 6 ++-- templates/balance.tmpl | 62 +++++++++++++++++++++++++++--------------- 4 files changed, 45 insertions(+), 34 deletions(-) diff --git a/ledger.py b/ledger.py index 8968a4d..7a62924 100755 --- a/ledger.py +++ b/ledger.py @@ -68,13 +68,6 @@ class Account: if self.parent: self.parent.children += [self] - @property - def full_name(self) -> str: - """Return full account path.""" - if self.parent: - return f'{self.parent.full_name}:{self.basename}' - return self.basename - @property def wealth(self) -> Wealth: """Total of .local_wealth with that of .children.""" diff --git a/templates/_base.tmpl b/templates/_base.tmpl index 034c58d..0ec782d 100644 --- a/templates/_base.tmpl +++ b/templates/_base.tmpl @@ -8,8 +8,8 @@