From 0ee61614400a2638d28bef25bad5c2131aaa6123 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 12:16:17 +0000 Subject: [PATCH] Only count informational realizations in the per-account figures --- tax.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tax.py b/tax.py index 603b43b..57de894 100644 --- a/tax.py +++ b/tax.py @@ -102,7 +102,11 @@ def report(year, conn=None): value = row["leg_out_ore"] or row["cost_ore"] if counted: admin_cost_ore += value - elif row["type"] in REALIZING_TYPES and row["leg_out_sats"]: + elif ( + row["type"] in REALIZING_TYPES + and row["leg_out_sats"] + and informational + ): if row["type"] == "loss": proceeds = 0 elif row["type"] == "spend":