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

TypeError: zrevrangebyscore() got an unexpected keyword argument 'offset' when running through docker #425

Closed
JohnBonJo opened this issue Jul 6, 2022 · 2 comments

Comments

@JohnBonJo
Copy link

on line 42 tanner/tanner/api/api.py

offset_error

same as this issue #416

On that issue afeena suggested to use the develop branch.
I've tried it and got other errors.

@toyray
Copy link

toyray commented Sep 20, 2022

Changing that line to query_res = await self.redis_client.zrevrangebyscore(uuid, 0, -1, start=0, num=count) seems to allow it to run with aioredis 2.0.

Referenced the doc at https://aioredis.readthedocs.io/en/latest/api/high-level/#aioredis.client.Redis.zrevrangebyscore, but I don't know if it works as intended.

@JohnBonJo
Copy link
Author

JohnBonJo commented Sep 29, 2022

Thanks @toyray
it worked!

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