Support to set restore operation
This commit is contained in:
@@ -278,3 +278,7 @@ def sync_with_server(name: str, operation: int) -> ChangeSet:
|
||||
|
||||
def get_restore_operation(name: str) -> int:
|
||||
return read(name, f'select * from restore_operation')['id']
|
||||
|
||||
|
||||
def set_restore_operation(name: str, operation: int) -> None:
|
||||
write(name, f'update restore_operation set id = {operation}')
|
||||
|
||||
Reference in New Issue
Block a user