From bb74e495aa84881dd8e574b369d02dda7aaa3cc6 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 4 Jan 2017 11:53:33 -0800 Subject: testing fix for order mismatch in admin --- system/admin/handlers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'system/admin') 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 { -- cgit v1.2.3