diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-18 12:53:09 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-18 12:53:09 -0700 |
commit | f2248829204c1c50292694b1bafbf4da1722fd37 (patch) | |
tree | 001b09f52b3a54c73c24f01aac936523fb29516a | |
parent | 1edea47f6c0cbda3f1fe963fc7946b4a89f55a03 (diff) |
debugging
-rw-r--r-- | system/db/content.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go index d9b5460..2626e8b 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -211,10 +211,11 @@ func SortContent(namespace string) { fmt.Println(all) var posts sortablePosts - post := content.Types[namespace]() // decode each (json) into Editable for i := range all { j := all[i] + post := content.Types[namespace]() + err := json.Unmarshal(j, &post) if err != nil { log.Println("Error decoding json while sorting", namespace, ":", err) |