forks are no more included in language statistics (ping @naholyr)

This commit is contained in:
Nicolas Perriault
2011-02-07 14:25:55 +01:00
parent 5ea11860e3
commit c0d8579df4

View File

@@ -113,6 +113,10 @@ var run = function() {
var languages = {};
repos.forEach(function(elm, i, arr) {
if (arr[i].fork !== false) {
return;
}
if (arr[i].language) {
if (arr[i].language in languages) {
languages[arr[i].language]++;
@@ -121,10 +125,6 @@ var run = function() {
}
}
if (arr[i].fork !== false) {
return;
}
var popularity = arr[i].watchers + arr[i].forks;
sorted.push({position: i, popularity: popularity, info: arr[i]});
});