1
0
forked from bot/app

fix: type has no TABLE_NAME attr

This commit is contained in:
远野千束 2024-03-29 00:05:46 +08:00
parent bb17d2949a
commit f23567194c

View File

@ -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") plugin_module_name: str = result.subcommands["uninstall"].args.get("plugin_name")
found_installed_plugin: InstalledPlugin = plugin_db.first(InstalledPlugin(), "module_name = ?", plugin_module_name) found_installed_plugin: InstalledPlugin = plugin_db.first(InstalledPlugin(), "module_name = ?", plugin_module_name)
if found_installed_plugin: 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)}" reply = f"{ulang.get('npm.uninstall_success', NAME=found_installed_plugin.module_name)}"
await npm_alc.finish(reply) await npm_alc.finish(reply)
else: else: