Skip to content

Commit

Permalink
Merge pull request #31 from e-max/count_offset_zrangebyscore_bug
Browse files Browse the repository at this point in the history
possibility to set offset=0 in zrangebyscore
  • Loading branch information
fiorix committed Sep 6, 2012
2 parents 326cb29 + 112fdd3 commit d0ddd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txredisapi.py
Expand Up @@ -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:
Expand Down

0 comments on commit d0ddd15

Please sign in to comment.