mushorg / tanner

He who flays the hide
GNU General Public License v3.0
220 stars 101 forks source link

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

Closed JohnBonJo closed 1 year ago

JohnBonJo commented 2 years ago

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

offset_error

same as this issue https://github.com/mushorg/tanner/issues/416

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

toyray commented 1 year ago

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 commented 1 year ago

Thanks @toyray it worked!