diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2011-03-14 11:29:57 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2011-03-14 11:29:57 -0700 |
commit | fc3b34cd168ce72e983fb92da60e2a361cd95631 (patch) | |
tree | c9e92c85c31decfb8cc82f4fb049ca5a76d03e19 /redis/client.py | |
parent | 67e64fafed3ce8f1e61aafcbdad4029ed3340067 (diff) | |
download | redis-py-fc3b34cd168ce72e983fb92da60e2a361cd95631.tar.gz |
the actual order of the zrevrangebyscore parameters were switched, too, which was the root of this problem
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/redis/client.py b/redis/client.py index 42ac210..bb769b7 100644 --- a/redis/client.py +++ b/redis/client.py @@ -673,17 +673,17 @@ class Redis(threading.local): end of the list """ return self.execute_command('LINDEX', name, index) - + def linsert(self, name, where, refvalue, value): """ Insert ``value`` in list ``name`` either immediately before or after [``where``] ``refvalue`` - + Returns the new length of the list on success or -1 if ``refvalue`` is not in the list. """ return self.execute_command('LINSERT', name, where, refvalue, value) - + def llen(self, name): "Return the length of the list ``name``" return self.execute_command('LLEN', name) @@ -695,7 +695,7 @@ class Redis(threading.local): def lpush(self, name, value): "Push ``value`` onto the head of the list ``name``" return self.execute_command('LPUSH', name, value) - + def lpushx(self, name, value): "Push ``value`` onto the head of the list ``name`` if ``name`` exists" return self.execute_command('LPUSHX', name, value) @@ -1026,8 +1026,8 @@ class Redis(threading.local): if withscores: pieces.append('withscores') return self.execute_command(*pieces, **{'withscores': withscores}) - - def zrevrangebyscore(self, name, min, max, + + def zrevrangebyscore(self, name, max, min, start=None, num=None, withscores=False): """ Return a range of values from the sorted set ``name`` with scores |