Skip to content

Commit

Permalink
Fix group stats
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Nov 13, 2023
1 parent 6f13f59 commit c715583
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit c715583

Please sign in to comment.