Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort start/num check is broken #1

Closed
orph opened this issue Nov 20, 2009 · 2 comments
Closed

sort start/num check is broken #1

orph opened this issue Nov 20, 2009 · 2 comments

Comments

@orph
Copy link

orph commented Nov 20, 2009

0 is False in Python, so passing start=0, num=20 to sort will return all the results.

Line 676:
if start and num
Should be:
if start != None and num != None:

@andymccurdy
Copy link
Contributor

closed by d09367d by checking for None rather than boolean on sort params since 0 is valid.

@andymccurdy
Copy link
Contributor

Thanks! Commited to github in d09367d, will be available in the next release.

andymccurdy pushed a commit that referenced this issue Jun 14, 2016
andymccurdy pushed a commit that referenced this issue Nov 5, 2018
Remove reason arg from client_unblock. Use boolean 'error' arg instead.

xref: #1036 (review)
andymccurdy pushed a commit that referenced this issue Jan 27, 2019
chayim pushed a commit that referenced this issue Dec 2, 2021
bellatoris pushed a commit to bellatoris/redis-py that referenced this issue Jul 13, 2023
* [GROW-2938] do not reset redis_connection on an error

* [GROW-2938] add backoff to more errors

* [GROW-2938] recover from SlotNotCoveredError

* [GROW-2938] prevent get_node_from_slot from failing due to concurrent cluster slots refresh

* [GROW-2938] add retry to ClusterPipeline

(cherry picked from commit 63e06dd)
bellatoris pushed a commit to bellatoris/redis-py that referenced this issue Jul 13, 2023
* [GROW-2938] add a test for invalid index returned from load balancer

* [GROW-2938] add a test for pipeline additional backoff

(cherry picked from commit 308c82b)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants