From c7155837b45129a46fd9d84e40ed6d5a5fce611c Mon Sep 17 00:00:00 2001 From: Dominique Hazael-Massieux Date: Mon, 13 Nov 2023 08:11:43 +0100 Subject: [PATCH] Fix group stats --- report.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/report.js b/report.js index 6ddb887df..5e6ba283e 100644 --- a/report.js +++ b/report.js @@ -10,6 +10,8 @@ const grouptypes = location.search ? location.search.slice(1).split(',') : ['cg' document.getElementById('period').textContent = period; [...document.querySelectorAll('.grouptype')].forEach(n => n.textContent = grouptypes.includes('cg') && grouptypes.includes('wg') ? 'All groups' : (grouptypes.includes('cg') ? 'Community Groups' : 'Working Groups')); +let inscopeGroups = 0; + const lastXMonths = ((period = period) => { const now = new Date(); const ayearago = new Date(); @@ -76,6 +78,7 @@ Promise.all([ groupdata.filter(d => d && grouptypes.includes(d.type)) .forEach(d => { if (!d) return; + inscopeGroups++; document.getElementById('timestamp').textContent = new Date(timestamp).toJSON().slice(0,10); const section = document.createElement("tr");