From d87cbf9650d9873af79f59d3c5559fea486e4864 Mon Sep 17 00:00:00 2001 From: Inference Bot Date: Tue, 20 Oct 2026 23:01:24 -0600 Subject: [PATCH] admin overview: expose matrix_mxid (dashboard-set external handle) per member --- app/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 58d204b..2a4be82 100644 --- a/app/main.py +++ b/app/main.py @@ -2579,7 +2579,7 @@ async def admin_overview(request: Request): conn = get_db() rows = conn.execute( - "SELECT email, active, balance, cloudron_user_id, org_slug FROM members ORDER BY email" + "SELECT email, active, balance, cloudron_user_id, org_slug, matrix_mxid FROM members ORDER BY email" ).fetchall() conn.close() @@ -2645,7 +2645,7 @@ async def admin_overview(request: Request): admins = [] total_spend = 0.0 total_all_time = 0.0 - for email, active, balance, user_id, org_slug in rows: + for email, active, balance, user_id, org_slug, matrix_mxid in rows: team = teams.get(f"member:{email}", {}) spend = float(team.get("spend") or 0.0) member_all_time = float(all_time_spend.get(f"member:{email}", 0.0)) @@ -2669,6 +2669,7 @@ async def admin_overview(request: Request): "active": bool(active), "manual": email.lower() in MANUAL_MEMBERS, "org": org_slug or None, + "matrix_mxid": matrix_mxid or None, "balance": float(balance) if balance is not None else MEMBER_BUDGET, "credit_balance": credits, "credits_remaining": max(0.0, credits - eff["credits_used"]),