diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-18 11:35:14 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-18 11:35:14 -0700 |
commit | 7eff6ff00d8c80e5c9d5eb123e91bbe798e42898 (patch) | |
tree | 78dd6979b10136db93e828f0dd8eca40e9481232 | |
parent | 5737b4634a2f8be5bf9ac1f709f2f344b9bb2f0f (diff) |
debugging
-rw-r--r-- | system/db/content.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/system/db/content.go b/system/db/content.go index 5eeb6c8..970d5de 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -222,13 +222,19 @@ func SortContent(namespace string) { posts = append(posts, post.(editor.Sortable)) } - fmt.Printf("%v\n", posts) + fmt.Println("-------------------------UN-SORTED------------------------") + + for i := range posts { + fmt.Printf("%v\n", posts[i]) + } fmt.Println("------------------------NOW SORTED------------------------") // sort posts sort.Sort(posts) - fmt.Printf("%v\n", posts) + for i := range posts { + fmt.Printf("%v\n", posts[i]) + } // one by one, encode to json and store as // store in __sorted bucket inside namespace bucket, first delete existing |