diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-04 11:53:33 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-04 11:53:33 -0800 |
commit | bb74e495aa84881dd8e574b369d02dda7aaa3cc6 (patch) | |
tree | 0eb736ca6b601be27cd3f0eabde73d5d1c00f5d2 /system/admin/handlers.go | |
parent | 53265d44d8152943cc43355bf71324d5d5b0c630 (diff) |
testing fix for order mismatch in admin
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 5 |
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 { |