Only count informational realizations in the per-account figures

This commit is contained in:
ai-bot committed 2026-11-14 12:16:17 +00:00
1 parent 15ca6c3bf0
commit 0ee6161440
1 file changed
+5 -1
+5 -1
View File
@@ -102,7 +102,11 @@ def report(year, conn=None):
value = row["leg_out_ore"] or row["cost_ore"] value = row["leg_out_ore"] or row["cost_ore"]
if counted: if counted:
admin_cost_ore += value 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": if row["type"] == "loss":
proceeds = 0 proceeds = 0
elif row["type"] == "spend": elif row["type"] == "spend":