Merge pull request #132 from uburuntu/patch-1

Typo: data -> bucket in update_bucket
This commit is contained in:
Alex Root Junior 2019-06-01 15:22:59 +03:00 committed by GitHub
commit 3701642bd3
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):
"""