From fa34d86b8aceb781044f32bf0cf917e74af694aa Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Fri, 14 Oct 2022 23:40:55 +0800 Subject: [PATCH] Fix bug --- api/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/operation.py b/api/operation.py index 0a048d9..b84898d 100644 --- a/api/operation.py +++ b/api/operation.py @@ -172,7 +172,7 @@ def pick_snapshot(name: str, tag: str, discard: bool) -> ChangeSet: def _get_change_set(name: str, operation: int, undo: bool) -> dict[str, Any]: row = read(name, f'select * from operation where id = {operation}') - return eval(row['undo']) if undo else eval(row['redo']) + return eval(row['undo_cs']) if undo else eval(row['redo_cs']) def sync_with_server(name: str, operation: int) -> ChangeSet: