Commit 09be6f5f authored by Klaus Wölfel's avatar Klaus Wölfel

Data Bucket Stream: always include start_key in sequence

when using excludemin=True, the result was not as expected if
no key > start_key was in the tree
parent eb04b3cf
......@@ -87,8 +87,7 @@ class DataBucketStream(Document):
"""
Get a lazy sequence of bucket values
"""
excludemin = start_key is not None
sequence = self._tree.keys(min=start_key, excludemin=excludemin)
sequence = self._tree.keys(min=start_key)
if count is None:
return sequence
return sequence[:count]
......@@ -97,8 +96,7 @@ class DataBucketStream(Document):
"""
Get a lazy sequence of bucket values
"""
excludemin = start_key is not None
sequence = self._tree.values(min=start_key, excludemin=excludemin)
sequence = self._tree.values(min=start_key)
if count is None:
return sequence
return sequence[:count]
......@@ -107,8 +105,7 @@ class DataBucketStream(Document):
"""
Get a lazy sequence of bucket values
"""
excludemin = start_key is not None
sequence = self._tree.items(min=start_key, excludemin=excludemin)
sequence = self._tree.items(min=start_key)
if count is None:
return sequence
return sequence[:count]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment