Permalink
Browse files

Fix bootstrapping problem for empty db

  • Loading branch information...
1 parent 50f3da1 commit c1d8aa4bc219526a202264eed0f1266fe418f2ad @amalloy amalloy committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/foreclojure/mongo.clj
@@ -55,7 +55,7 @@
+ times))
{}))
solved-counts (frequencies (map int (mapcat :solved users)))
- total (reduce + (vals solved-counts))]
+ total (reduce + 0 (vals solved-counts))]
(send solved-stats (constantly (assoc scores :total total :solved-counts solved-counts)))))
(defn prepare-mongo []

0 comments on commit c1d8aa4

Please sign in to comment.