summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authortwidi <s.angel@twidi.com>2011-02-27 23:41:32 +0100
committertwidi <s.angel@twidi.com>2011-02-27 23:41:32 +0100
commitfb82e47d88f34c29863d267f4b4d569153bf0705 (patch)
tree54df3a085dd31aadd84d3e9c02fa66abf8f6fb61 /redis/client.py
parent89705f343adf2b57104e0d02935888bd7949833e (diff)
downloadredis-py-fb82e47d88f34c29863d267f4b4d569153bf0705.tar.gz
parameters for zrevrangebyscore are `max` then `min`, and not `min` then `max`
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 289f120..1a56c2f 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1041,7 +1041,7 @@ class Redis(threading.local):
if (start is not None and num is None) or \
(num is not None and start is None):
raise RedisError("``start`` and ``num`` must both be specified")
- pieces = ['ZREVRANGEBYSCORE', name, min, max]
+ pieces = ['ZREVRANGEBYSCORE', name, max, min]
if start is not None and num is not None:
pieces.extend(['LIMIT', start, num])
if withscores: