Support to set restore operation

This commit is contained in:
WQY\qiong
2023-02-16 22:18:51 +08:00
parent 3c7903e742
commit 8f55b21275
4 changed files with 9 additions and 2 deletions

View File

@@ -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}')