Fix list snapshot

This commit is contained in:
WQY\qiong
2023-04-06 23:15:47 +08:00
parent 02b5ef71f2
commit bfeaa9f8c0

View File

@@ -166,7 +166,7 @@ def execute_redo(name: str) -> ChangeSet:
def list_snapshot(name: str) -> list[tuple[int, str]]:
rows = read_all(name, f'select * from operation order by id')
rows = read_all(name, f'select * from snapshot_operation order by id')
result = []
for row in rows:
result.append((int(row['id']), str(row['tag'])))