From d4bdb60e1cf9618b3db0059c564b570dcf8f8919 Mon Sep 17 00:00:00 2001 From: MrMissx Date: Fri, 5 Jul 2024 19:47:29 +0700 Subject: [PATCH] fix(core): add unimpemented update_state() method --- anjani/core/sqlite_storage.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/anjani/core/sqlite_storage.py b/anjani/core/sqlite_storage.py index f2b32826e..41a09ff02 100644 --- a/anjani/core/sqlite_storage.py +++ b/anjani/core/sqlite_storage.py @@ -125,6 +125,20 @@ async def update(self): await self.version(version) # type:ignore + async def update_state(self, update_state: Tuple[int, int, int, int, int] = object): + """Get or set the update state of the current session. + + Parameters: + update_state (``Tuple[int, int, int, int, int]``): A tuple containing the update state to set. + Tuple must contain the following information: + - ``int``: The id of the entity. + - ``int``: The pts. + - ``int``: The qts. + - ``int``: The date. + - ``int``: The seq. + """ + pass # anjani has its own catch-up mechanism + async def open(self): path = self.database file_exists = path.is_file()