Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched index from ascending to descending

  • Loading branch information...
commit 29736aeb2f469b077da1398e788a0cdc074e2111 1 parent 34fb50b
@dbyrne dbyrne authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 project.clj
  2. +2 −2 src/foreclojure/core.clj
View
4 project.clj
@@ -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
4 src/foreclojure/core.clj
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.