diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-02 02:30:16 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-02 02:30:16 -0700 |
commit | a4e236d3100c92633fc796e86a39e63e9134161c (patch) | |
tree | 0d765f90bf0750b31ff7f47f46326cc2fbf9bd49 /system/db/content.go | |
parent | bd27ac1f0dbff856ca3e96d1df636f3b02d61522 (diff) | |
parent | 785077c2f136040fa2d14a95c71828cddd802643 (diff) |
Merge branch 'ponzu-dev'
Diffstat (limited to 'system/db/content.go')
-rw-r--r-- | system/db/content.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/system/db/content.go b/system/db/content.go index 714e0c6..cfbd4ef 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -259,7 +259,7 @@ func Query(namespace string, opts QueryOptions) [][]byte { cur++ } - case "desc": + case "desc", "": for k, v := c.First(); k != nil; k, v = c.Next() { if cur < start { cur++ @@ -279,13 +279,6 @@ func Query(namespace string, opts QueryOptions) [][]byte { return nil }) - // if opts.order == "asc" { - // posts = []json.RawMessage{} - // for i := len(posts) - 1; i >= 0; i-- { - // posts = append(all, posts[i]) - // } - // } - return posts } |