From 384788a12dd213e5bf924fe8acb1becd2308b46c Mon Sep 17 00:00:00 2001 From: echoyang7 <50300391+echoyang7@users.noreply.github.com> Date: Wed, 8 May 2024 15:20:43 +0800 Subject: [PATCH] Bugfix/datamanager delete error (#848) * fix,inspector request miss data * fix datamanager delete error --- lyrebird/mock/dm/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lyrebird/mock/dm/__init__.py b/lyrebird/mock/dm/__init__.py index 079699ce..467c8df5 100644 --- a/lyrebird/mock/dm/__init__.py +++ b/lyrebird/mock/dm/__init__.py @@ -1208,8 +1208,8 @@ def _delete_remove_from_parent(self, id_): # batch action def delete_by_query(self, query): - node_delete_group_ids = query.get('data', []) - node_delete_data_ids = query.get('groups', []) + node_delete_group_ids = query.get('groups', []) + node_delete_data_ids = query.get('data', []) all_id_list = list(set(node_delete_group_ids + node_delete_data_ids)) times = math.ceil(len(all_id_list) / self.DELETE_STEP)