From 07e38c537f33b7aaf71af40b0755d4eb43828323 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 15 Nov 2026 18:31:33 +0000 Subject: [PATCH] Leave the bank out of the account rows --- tax.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tax.py b/tax.py index 93c16c5..f8c45ff 100644 --- a/tax.py +++ b/tax.py @@ -120,6 +120,9 @@ def report(year, conn=None): "SELECT id, name, taxable, custody_market_id, sort_order FROM markets" " ORDER BY sort_order, name" ).fetchall()] + # The bank pays the costs and is nobody's holding (section 3.11). + bank_id = int(settings.get("bank_market_id") or 0) + markets = [market for market in markets if market["id"] != bank_id] by_id = {market["id"]: market for market in markets} holdings = ledger.holdings_at(end_date, conn)