diff options
Diffstat (limited to 'system/db/content.go')
-rw-r--r-- | system/db/content.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/db/content.go b/system/db/content.go index 9aa86d8..8058cad 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -233,7 +233,7 @@ func Query(namespace string, opts QueryOptions) [][]byte { switch opts.Order { case "asc": for k, v := c.Last(); k != nil; c.Prev() { - if start < cur && cur < end { + if cur < end { cur++ continue } @@ -248,7 +248,7 @@ func Query(namespace string, opts QueryOptions) [][]byte { case "desc": for k, v := c.First(); k != nil; c.Next() { - if start < cur && cur < end { + if cur < start { cur++ continue } |