Skip to content

Commit

Permalink
🚑 修复插件配置项显示
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier committed Jan 7, 2025
1 parent e124c1d commit 48ed780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zhenxun/builtin_plugins/init/init_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand All @@ -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
Expand Down

0 comments on commit 48ed780

Please sign in to comment.