Skip to content

Commit

Permalink
fix(core): add unimpemented update_state() method
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMissx committed Jul 5, 2024
1 parent d8ae4b3 commit d4bdb60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions anjani/core/sqlite_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d4bdb60

Please sign in to comment.