fix 在线插件去重(以后面的为准)

This commit is contained in:
jxxghp 2023-11-02 11:00:49 +08:00
parent 0a9e125f89
commit 798a737f06

View File

@ -266,6 +266,9 @@ class PluginManager(metaclass=Singleton):
conf.update({"is_local": False})
# 汇总
all_confs.append(conf)
# 按插件ID去重
if all_confs:
all_confs = list({v["id"]: v for v in all_confs}.values())
return all_confs
def get_local_plugins(self) -> List[Dict[str, dict]]: