From 6f8fc0a76748c42a22accc54984de2ef3807362a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 22 Jan 2025 14:55:30 +0100 Subject: [PATCH] Fix broken sink summation. --- ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger.py b/ledger.py index c7f3116..89cf94f 100755 --- a/ledger.py +++ b/ledger.py @@ -44,7 +44,7 @@ class Wealth: """Drop zero amounts, invert non-zero ones.""" sink = Wealth() for moneys in [Wealth({c: a}) for c, a in self.moneys.items() if a]: - sink = moneys + sink -= moneys return sink -- 2.30.2