diff options
-rw-r--r-- | system/db/content.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/db/content.go b/system/db/content.go index 860f830..a7fbc30 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -237,16 +237,16 @@ func Query(namespace string, opts QueryOptions) [][]byte { } i := 0 // count of num posts added - cur := 0 // count of where cursor is + cur := 0 // count of num cursor moves switch opts.Order { case "asc": for k, v := c.Last(); k != nil; k, v = c.Prev() { - if cur < end { + if cur < start { cur++ continue } - if cur < start { + if cur >= end { break } |