From 4a9bb3440f6163bacd44e705e9bb0eb8d148e22b Mon Sep 17 00:00:00 2001 From: Haxe18 Date: Sun, 25 Jan 2026 20:00:27 +0100 Subject: [PATCH] fix(webui): exclude disabled accounts from quota stats and charts - Update data-store.js to filter out disabled accounts in computeQuotaRows() - Update data-store.js to filter out disabled accounts in getUnfilteredQuotaData() - Ensures Global Quota average and Account Distribution only reflect active accounts Co-Authored-By: Claude --- public/js/data-store.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/data-store.js b/public/js/data-store.js index 4c7df16..7967b50 100644 --- a/public/js/data-store.js +++ b/public/js/data-store.js @@ -237,6 +237,7 @@ document.addEventListener('alpine:init', () => { let minResetTime = null; this.accounts.forEach(acc => { + if (acc.enabled === false) return; if (this.filters.account !== 'all' && acc.email !== this.filters.account) return; const limit = acc.limits?.[modelId]; @@ -352,6 +353,7 @@ document.addEventListener('alpine:init', () => { const quotaInfo = []; // Use ALL accounts (no account filter) this.accounts.forEach(acc => { + if (acc.enabled === false) return; const limit = acc.limits?.[modelId]; if (!limit) return; const pct = limit.remainingFraction !== null ? Math.round(limit.remainingFraction * 100) : 0;