From 425936872deaf7a0a48dd714b39053d9b0d733e3 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Thu, 11 May 2023 22:01:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E7=BB=93=E6=9E=9C=E6=98=BE=E7=A4=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/command/command.py b/model/command/command.py index 5967d4ede..4f0b8dfd1 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -67,13 +67,13 @@ class Command: if l[1] == "i": try: Repo.clone_from(l[2],to_path=ppath,branch='master') - return False, "插件拉取成功~", "plugin" + return True, "插件拉取成功~", "plugin" except BaseException as e: return False, f"拉取插件失败,原因: {str(e)}", "plugin" elif l[1] == "d": try: os.remove(os.path.join(ppath, l[2])) - return False, "插件卸载成功~", "plugin" + return True, "插件卸载成功~", "plugin" except BaseException as e: return False, f"卸载插件失败,原因: {str(e)}", "plugin"