summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-04 11:46:59 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-04 11:46:59 -0800
commit53265d44d8152943cc43355bf71324d5d5b0c630 (patch)
treef17caa2745c5e142d722ef9c304c905e49b06986 /system/admin/handlers.go
parentdd806fbac9a933ccb28abc5fd7e78e7673d4e714 (diff)
testing fix for order mismatch in admin
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index 1e16a51..aaaad23 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -923,7 +923,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
switch status {
case "public", "":
- fmt.Println(opts "\n\npublic")
+ fmt.Println(opts, "\n\npublic")
// get __sorted posts of type t from the db
total, posts = db.Query(t+specifier, opts)
@@ -949,7 +949,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
}
case "pending":
- fmt.Println(opts "\n\npending")
+ fmt.Println(opts, "\n\npending")
// get __pending posts of type t from the db
total, posts = db.Query(t+"__pending", opts)
@@ -976,6 +976,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
}
} else {
+ fmt.Println(opts, "\n\nneither")
total, posts = db.Query(t+specifier, opts)
for i := range posts {