mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复插件获取
This commit is contained in:
parent
e4363c573e
commit
dd179ac218
@ -74,7 +74,7 @@ class PluginInfo(Model):
|
|||||||
"""
|
"""
|
||||||
if filter_parent:
|
if filter_parent:
|
||||||
return await cls.get_or_none(
|
return await cls.get_or_none(
|
||||||
load_status=load_status, parent__isnull=True, **kwargs
|
load_status=load_status, plugin_type__not=PluginType.PARENT, **kwargs
|
||||||
)
|
)
|
||||||
return await cls.get_or_none(load_status=load_status, **kwargs)
|
return await cls.get_or_none(load_status=load_status, **kwargs)
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ class PluginInfo(Model):
|
|||||||
"""
|
"""
|
||||||
if filter_parent:
|
if filter_parent:
|
||||||
return await cls.filter(
|
return await cls.filter(
|
||||||
load_status=load_status, parent__isnull=True, **kwargs
|
load_status=load_status, plugin_type__not=PluginType.PARENT, **kwargs
|
||||||
).all()
|
).all()
|
||||||
return await cls.filter(load_status=load_status, **kwargs).all()
|
return await cls.filter(load_status=load_status, **kwargs).all()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user