Tweak schoolCounts script to list total number of schools
This commit is contained in:
parent
fa54b639c7
commit
d874029539
1 changed files with 4 additions and 2 deletions
|
@ -31,9 +31,11 @@ schoolCounts.sort(function(a, b) {
|
||||||
return 1;
|
return 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var count = 0;
|
||||||
for (var i = 0; i < schoolCounts.length; i++) {
|
for (var i = 0; i < schoolCounts.length; i++) {
|
||||||
if (schoolCounts[i].count >= 10)
|
if (schoolCounts[i].count >= 2) {
|
||||||
print(schoolCounts[i].count, schoolCounts[i].schoolName);
|
print(++count, '\t', schoolCounts[i].count, schoolCounts[i].schoolName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log("Script runtime: " + (new Date() - scriptStartTime));
|
log("Script runtime: " + (new Date() - scriptStartTime));
|
||||||
|
|
Reference in a new issue