portal: membership-status reports the computed allowance, not members.balance (often NULL)
ci/woodpecker/push/woodpecker Pipeline was canceled
ci/woodpecker/push/woodpecker Pipeline was canceled
This commit is contained in:
1 parent
265fae993f
commit
85e8e62e5b
1 file changed
+2
-1
+2
-1
@@ -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]}
|
||||
|
||||
Reference in new issue
Block a user