Permalink
Browse files

Merge pull request #31 from e-max/count_offset_zrangebyscore_bug

possibility to set offset=0 in zrangebyscore
  • Loading branch information...
2 parents 326cb29 + 112fdd3 commit d0ddd15ac029dd7762685f39d04cb3408d9c9e51 @fiorix committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 txredisapi.py
View
@@ -972,7 +972,7 @@ def _zrangebyscore(self, key, min, max, withscores, offset, count, rev):
pieces = [cmd, key, min, max, "WITHSCORES"]
else:
pieces = [cmd, key, min, max]
- if offset and count:
+ if offset is not None and count is not None:
pieces.extend(("LIMIT", offset, count))
r = self.execute_command(*pieces)
if withscores:

0 comments on commit d0ddd15

Please sign in to comment.