Tweak schoolCounts script to list total number of schools

This commit is contained in:
Nick Winter 2016-02-01 08:38:50 -08:00 committed by Scott Erickson
parent fa54b639c7
commit d874029539

View file

@ -31,9 +31,11 @@ schoolCounts.sort(function(a, b) {
return 1;
});
var count = 0;
for (var i = 0; i < schoolCounts.length; i++) {
if (schoolCounts[i].count >= 10)
print(schoolCounts[i].count, schoolCounts[i].schoolName);
if (schoolCounts[i].count >= 2) {
print(++count, '\t', schoolCounts[i].count, schoolCounts[i].schoolName);
}
}
log("Script runtime: " + (new Date() - scriptStartTime));