mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
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;
|
||||
});
|
||||
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue