From f23567194cf1b19f91b08849c35f5addfd27669f Mon Sep 17 00:00:00 2001 From: snowy Date: Fri, 29 Mar 2024 00:05:46 +0800 Subject: [PATCH] fix: type has no TABLE_NAME attr --- liteyuki/plugins/liteyuki_npm/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteyuki/plugins/liteyuki_npm/installer.py b/liteyuki/plugins/liteyuki_npm/installer.py index 0b3e1845..98a24986 100644 --- a/liteyuki/plugins/liteyuki_npm/installer.py +++ b/liteyuki/plugins/liteyuki_npm/installer.py @@ -133,7 +133,7 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot): plugin_module_name: str = result.subcommands["uninstall"].args.get("plugin_name") found_installed_plugin: InstalledPlugin = plugin_db.first(InstalledPlugin(), "module_name = ?", plugin_module_name) if found_installed_plugin: - plugin_db.delete(InstalledPlugin, "module_name = ?", plugin_module_name) + plugin_db.delete(InstalledPlugin(), "module_name = ?", plugin_module_name) reply = f"{ulang.get('npm.uninstall_success', NAME=found_installed_plugin.module_name)}" await npm_alc.finish(reply) else: