Skip to content

Commit 310cfb1

Browse files
committed
keep pace with redis-py for zrevrange method
1 parent eb2eb27 commit 310cfb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fakeredis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,19 +1825,19 @@ def zlexcount(self, name, min, max):
18251825
found += 1
18261826
return found
18271827

1828-
def zrevrange(self, name, start, num, withscores=False, score_cast_func=float):
1828+
def zrevrange(self, name, start, end, withscores=False, score_cast_func=float):
18291829
"""
18301830
Return a range of values from sorted set ``name`` between
1831-
``start`` and ``num`` sorted in descending order.
1831+
``start`` and ``end`` sorted in descending order.
18321832
1833-
``start`` and ``num`` can be negative, indicating the end of the range.
1833+
``start`` and ``end`` can be negative, indicating the end of the range.
18341834
18351835
``withscores`` indicates to return the scores along with the values
18361836
The return type is a list of (value, score) pairs
18371837
18381838
``score_cast_func`` a callable used to cast the score return value
18391839
"""
1840-
return self.zrange(name, start, num, True, withscores, score_cast_func)
1840+
return self.zrange(name, start, end, True, withscores, score_cast_func)
18411841

18421842
def zrevrangebyscore(self, name, max, min, start=None, num=None,
18431843
withscores=False, score_cast_func=float):

0 commit comments

Comments
 (0)