mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix redis1 delete
This commit is contained in:
parent
8ea3546cda
commit
4b8fd4bf71
2 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ class RedisStorage(BaseStorage):
|
|||
|
||||
conn = await self.redis()
|
||||
if state is None and data == bucket == {}:
|
||||
await conn.delete(addr)
|
||||
await conn.execute('DEL', addr)
|
||||
else:
|
||||
record = {'state': state, 'data': data, 'bucket': bucket}
|
||||
await conn.execute('SET', addr, json.dumps(record))
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ async def memory_store():
|
|||
"store", [
|
||||
pytest.lazy_fixture('redis_store'),
|
||||
pytest.lazy_fixture('redis_store2'),
|
||||
pytest.lazy_fixture('memory_store')
|
||||
pytest.lazy_fixture('memory_store'),
|
||||
]
|
||||
)
|
||||
class TestStorage:
|
||||
Loading…
Add table
Add a link
Reference in a new issue