mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-23 02:07:39 +08:00
fix: type has no TABLE_NAME attr
This commit is contained in:
parent
bb17d2949a
commit
f23567194c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user