Only count informational realizations in the per-account figures
This commit is contained in:
1 parent
15ca6c3bf0
commit
0ee6161440
1 file changed
+5
-1
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user