From 26060f0dd780536dc9ffb8c7bc7a50fae87d7c69 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Mon, 25 Nov 2024 02:09:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BC=98=E5=8C=96=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E8=B0=83=E7=94=A8=E9=80=BB=E8=BE=91=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E5=86=97=E4=BD=99=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quark_auto_save.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/quark_auto_save.py b/quark_auto_save.py index 21a39b0..9358d38 100644 --- a/quark_auto_save.py +++ b/quark_auto_save.py @@ -868,10 +868,13 @@ def do_save(account, tasklist=[]): task.get("addition", {}), CONFIG_DATA["task_plugins_config"] ) # 调用插件 - print(f"🧩 调用插件") - for plugin_name, plugin in plugins.items(): - if plugin.is_active and (is_new_tree or is_rename): - task = plugin.run(task, account=account, tree=is_new_tree) or task + if is_new_tree or is_rename: + print(f"🧩 调用插件") + for plugin_name, plugin in plugins.items(): + if plugin.is_active and (is_new_tree or is_rename): + task = ( + plugin.run(task, account=account, tree=is_new_tree) or task + ) print()