Permalink
Browse files

Make the list of bootstrap users configurable, and better documented

  • Loading branch information...
1 parent 5627735 commit 579ae3a4dd6647478e84255bf7d1b6e74746957a @amalloy amalloy committed Sep 7, 2011
Showing with 5 additions and 3 deletions.
  1. +4 −1 config.clj
  2. +1 −2 src/foreclojure/mongo.clj
View
@@ -8,4 +8,7 @@
:advanced-user-count 50
:pass ""
:repo-url "https://github.com/4clojure/4clojure"
- :golfing-active true}
+ :golfing-active true
+ ;; this list is just for bootstrapping - the real DB is authoritative
+ :contributors ["amalloy" "dbyrne" "raynes" "cmeier" "devn" "0x89"
+ "citizen428" "daviddavis" "clinteger" "amcnamara"]}
@@ -32,8 +32,7 @@
(add-index! :users [:user] :unique true)
(add-index! :users [[:solved -1]])
(update! :users
- {:user {:$in ["amalloy" "dbyrne" "raynes" "cmeier" "devn"
- "citizen428" "daviddavis" "clinteger"]}}
+ {:user {:$in (:contributors config)}}
{:$set {:contributor true}}
:upsert false
:multiple true))

0 comments on commit 579ae3a

Please sign in to comment.