Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Redis.zrevrangebyscore was wrong #1364

Open
1 task done
ZengYuQin opened this issue May 24, 2022 · 0 comments
Open
1 task done

Redis.zrevrangebyscore was wrong #1364

ZengYuQin opened this issue May 24, 2022 · 0 comments
Labels

Comments

@ZengYuQin
Copy link

Describe the bug

In the function zrevrangebyscore.
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, min, max]
must modify:
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, max, min]

To Reproduce

In the function zrevrangebyscore
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, min, max]
must modify:
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, max, min]

Expected behavior

In the function zrevrangebyscore
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, min, max]
must modify:
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, max, min]

Logs/tracebacks

In the function zrevrangebyscore
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, min, max]
must modify:
pieces: List[EncodableT] = ["ZREVRANGEBYSCORE", name, max, min]

Python Version

$ python --version
python 3.7.5

aioredis Version

$ python -m pip show aioredis
aioredis==2.0.1&aioredis==2.0.0

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@ZengYuQin ZengYuQin added the bug label May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant