ci: fix poetry

This commit is contained in:
long2ice
2023-02-15 10:45:19 +08:00
parent d04be274e9
commit 27acce3160
5 changed files with 14 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ class RedisBackend(Backend):
async def get_with_ttl(self, key: str) -> Tuple[int, str]:
async with self.redis.pipeline(transaction=not self.is_cluster) as pipe:
return await (pipe.ttl(key).get(key).execute())
return await pipe.ttl(key).get(key).execute()
async def get(self, key: str) -> Optional[str]:
return await self.redis.get(key)
@@ -27,4 +27,4 @@ class RedisBackend(Backend):
return await self.redis.eval(lua, numkeys=0)
elif key:
return await self.redis.delete(key)
return 0
return 0