mirror of
https://github.com/resume/resume.github.com.git
synced 2025-12-30 15:49:30 -06:00
forks are no more included in language statistics (ping @naholyr)
This commit is contained in:
@@ -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]});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user