Permalink
Browse files

Switched index from ascending to descending

  • Loading branch information...
1 parent 34fb50b commit 29736aeb2f469b077da1398e788a0cdc074e2111 @dbyrne dbyrne committed Apr 19, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 project.clj
  2. +2 −2 src/foreclojure/core.clj
View
@@ -6,8 +6,8 @@
[hiccup "0.2.4"]
[clojail "0.4.0-SNAPSHOT"]
[sandbar "0.4.0-SNAPSHOT"]
- [congomongo "0.1.3-SNAPSHOT"]
- [org.jasypt/jasypt "1.7"]
+ [org.clojars.christophermaier/congomongo "0.1.4-SNAPSHOT"]
+ [org.jasypt/jasypt "1.7"]
[amalloy/utils "[0.3.7,)"]
[clj-github "1.0.0-SNAPSHOT"]]
:dev-dependencies [[lein-ring "0.4.0"]
View
@@ -12,11 +12,11 @@
[compojure.handler :as handler]
[sandbar.stateful-session :as session]
(ring.util [response :as response])))
+
(mongo!
:db "mydb")
-
(add-index! :users [:user] :unique true)
-(add-index! :users [:solved])
+(add-index! :users [[:solved -1]])
(defroutes main-routes
(GET "/" [] (welcome-page))

0 comments on commit 29736ae

Please sign in to comment.