From 4238a550f9b45c749896bd4f175bff1f9f622076 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Sat, 17 Dec 2022 09:50:53 +0800 Subject: [PATCH] Fix bug for demand --- api/s9_demands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/s9_demands.py b/api/s9_demands.py index 02c87d5..bf184f6 100644 --- a/api/s9_demands.py +++ b/api/s9_demands.py @@ -73,9 +73,9 @@ def set_demand_cache(name: str, cs: ChangeSet) -> DbChangeSet: undo_sql += '\n' undo_sql += _undo_sql - redo_cs.append(cache.redo_cs) + redo_cs += cache.redo_cs - undo_cs.append(cache.undo_cs) + undo_cs += cache.undo_cs undo_cs.reverse() return DbChangeSet(redo_sql, undo_sql, redo_cs, undo_cs)