mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 15:49:29 +00:00
refactor: add precommit autochanges and fix merge error
Refs: OPS-68
This commit is contained in:
parent
827f770d35
commit
2e3987ab8b
1 changed files with 1 additions and 3 deletions
|
|
@ -137,7 +137,7 @@ class StoreManager:
|
|||
"""
|
||||
return self._db.insert(data)
|
||||
|
||||
def load_haiku(self, key: int) -> Optional[Haiku]:
|
||||
def load_haiku(self, key: Optional[int]) -> Haiku:
|
||||
"""
|
||||
Load a haiku by its ID.
|
||||
|
||||
|
|
@ -146,8 +146,6 @@ class StoreManager:
|
|||
:return: A Haiku object if found, None otherwise.
|
||||
:rtype: Optional[Haiku]
|
||||
"""
|
||||
|
||||
def load_haiku(self, key: Optional[int]) -> Haiku:
|
||||
if key is None:
|
||||
return DEFAULT_HAIKU
|
||||
raw_haiku: dict | None = self._load(key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue