mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix
This commit is contained in:
parent
61dfd60781
commit
c7a0d75c39
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ class BaseStorage(ABC):
|
|||
"""
|
||||
pass
|
||||
|
||||
async def get_value(self, key: StorageKey, data_key: str, default: Any) -> Any:
|
||||
async def get_value(self, key: StorageKey, data_key: str, default: Any = None) -> Any:
|
||||
"""
|
||||
Get selected value by key in current data
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ class BaseStorage(ABC):
|
|||
:return: value of current data by key
|
||||
"""
|
||||
current_data = await self.get_data(key=key)
|
||||
return current_data.get(data_key)
|
||||
return current_data.get(data_key, default)
|
||||
|
||||
async def update_data(self, key: StorageKey, data: Dict[str, Any]) -> Dict[str, Any]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue