From 85e8e62e5b6e42eff246cd5bf62e9e36aef04915 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Tue, 17 Nov 2026 04:56:58 +0000 Subject: [PATCH] portal: membership-status reports the computed allowance, not members.balance (often NULL) --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index a42272d..4cce9ee 100644 --- a/app/main.py +++ b/app/main.py @@ -6628,7 +6628,8 @@ async def broker_membership_status(request: Request): "source": source, "minimum_contribution": MIN_CONTRIBUTION, "contribute_url": credit_pack_url(), - "allowance": float(balance if balance is not None else 0.0), + # members.balance is often NULL; the allowance is the computed budget + "allowance": float(get_member_balance(email)), "credits": float(credits or 0.0), "last_decision": ({"cycle": decision[0], "decision": decision[1], "evidence": decision[2], "decided_at": decision[3]}