summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorYoung King <y@zhihu.com>2012-06-08 17:23:38 +0800
committerYoung King <y@zhihu.com>2012-06-08 17:23:38 +0800
commitcaf4bc0ab930d9fc48a4558abd51f60912a42131 (patch)
tree371059dfd5b48d71f1f856396112b944ee1f369e /redis/client.py
parentd2a7156f7fd108a24d8aa321e2ecd67b3f1f34c6 (diff)
downloadredis-py-caf4bc0ab930d9fc48a4558abd51f60912a42131.tar.gz
fix score_cast_func doesn't work with desc condiction
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 839b156..08bf08b 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -898,7 +898,7 @@ class StrictRedis(object):
``score_cast_func`` a callable used to cast the score return value
"""
if desc:
- return self.zrevrange(name, start, end, withscores)
+ return self.zrevrange(name, start, end, withscores, score_cast_func)
pieces = ['ZRANGE', name, start, end]
if withscores:
pieces.append('withscores')