🚑 修复插件配置项显示

This commit is contained in:
HibiKier 2025-01-07 16:40:05 +08:00
parent e124c1dbdb
commit 48ed7800b4

View File

@ -49,7 +49,7 @@ def _handle_config(plugin: Plugin, exists_module: list[str]):
arg_parser=reg_config.arg_parser,
_override=False,
)
exists_module.append(f"{module}:{reg_config.key}")
exists_module.append(f"{module}:{reg_config.key}".lower())
def _generate_simple_config(exists_module: list[str]):
@ -71,7 +71,7 @@ def _generate_simple_config(exists_module: list[str]):
try:
if _data.get(module) and k in _data[module].keys():
Config.set_config(module, k, _data[module][k])
if f"{module}:{k}" in exists_module:
if f"{module}:{k}".lower() in exists_module:
_tmp_data[module][k] = Config.get_config(module, k)
except AttributeError as e:
raise AttributeError(f"{e}\n可能为config.yaml配置文件填写不规范") from e