Skip to content

Commit

Permalink
fix: 修复 Store 里的插件实例构造问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BigOrangeQWQ committed Aug 27, 2024
1 parent 17a7f33 commit 06e8db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/store_test/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self) -> None:
PLUGIN_KEY_TEMPLATE.format(
project_link=plugin["project_link"],
module_name=plugin["module_name"],
): StorePlugin.model_construct(**plugin)
): StorePlugin(**plugin)
for plugin in load_json(STORE_PLUGINS_URL)
}
# 插件配置文件
Expand All @@ -48,7 +48,7 @@ def __init__(self) -> None:
PLUGIN_KEY_TEMPLATE.format(
project_link=plugin["project_link"],
module_name=plugin["module_name"],
): Plugin.model_construct(**plugin)
): Plugin(**plugin)
for plugin in load_json(REGISTRY_PLUGINS_URL)
}

Expand Down

0 comments on commit 06e8db6

Please sign in to comment.