We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af29fbb commit 188a1a6Copy full SHA for 188a1a6
generate-stats.js
@@ -79,9 +79,10 @@ function generateTemplate(data) {
79
80
var rowsString = '';
81
82
- function filter(array) {
83
- return array.filter(function(value, index, arr) {
84
- return value.length && !exclude.includes(value[0]);
+ function filterContributors(arr) {
+ return arr.filter(function(value, index, arr) {
+ var userid = value[0]
85
+ return exclude.includes(userid) == false
86
});
87
}
88
@@ -101,7 +102,8 @@ function generateTemplate(data) {
101
102
return figure;
103
104
- shuffle(filter(contributors));
105
+ var filtered = filterContributors(contributors);
106
+ shuffle(filtered);
107
108
function buildRows(rowSet) {
109
rows.forEach(r => {
0 commit comments