Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add print-score script

  • Loading branch information...
commit 30eeca13cd1151d357920b2cded3e51241121bdd 1 parent 2811157
zeus authored
View
3  count-von-count/scripts/dump-laps.js
@@ -1,3 +0,0 @@
-db.teams.find().forEach(function(team) {
- print(team.name + ": " + team.laps);
-});
View
5 count-von-count/scripts/print-score.js
@@ -0,0 +1,5 @@
+var i = 1;
+db.teams.find().sort({'laps': -1}).forEach(function(team) {
+ print(i + '. ' + team.name + ' (' + team.laps + ')');
+ i++;
+});
Please sign in to comment.
Something went wrong with that request. Please try again.