From: Christian Heller Date: Wed, 22 Jan 2025 13:55:30 +0000 (+0100) Subject: Fix broken sink summation. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/condition?a=commitdiff_plain;h=6f8fc0a76748c42a22accc54984de2ef3807362a;p=plomledger Fix broken sink summation. --- 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