fix: typo: data -> bucket in update_bucket

This commit is contained in:
Ramzan Bekbulatov 2019-05-19 02:04:35 +03:00 committed by GitHub
parent 1df2b9f23c
commit 9c43c7fdde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,9 +336,9 @@ class RedisStorage2(BaseStorage):
bucket: typing.Dict = None, **kwargs):
if bucket is None:
bucket = {}
temp_bucket = await self.get_data(chat=chat, user=user)
temp_bucket = await self.get_bucket(chat=chat, user=user)
temp_bucket.update(bucket, **kwargs)
await self.set_data(chat=chat, user=user, data=temp_bucket)
await self.set_bucket(chat=chat, user=user, data=temp_bucket)
async def reset_all(self, full=True):
"""