summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/admin/handlers.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index aaaad23..e7dabfe 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -852,7 +852,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
}
var specifier string
- if status == "public" {
+ if status == "public" || status == "" {
specifier = "__sorted"
} else if status == "pending" {
specifier = "__pending"
@@ -923,7 +923,6 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
switch status {
case "public", "":
- fmt.Println(opts, "\n\npublic")
// get __sorted posts of type t from the db
total, posts = db.Query(t+specifier, opts)
@@ -949,7 +948,6 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
}
case "pending":
- fmt.Println(opts, "\n\npending")
// get __pending posts of type t from the db
total, posts = db.Query(t+"__pending", opts)
@@ -976,7 +974,6 @@ 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 {