diff --git a/pyproject.toml b/pyproject.toml index e53cfa4..e49e7cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot_plugin_liteperm" -version = "0.1.0" +version = "0.1.1" description = "基于权限节点/权限组/特殊权限的Nonebot权限管理插件。" authors = [ { name = "JohnRichard4096", email = "windowserror@163.com" }, diff --git a/src/nonebot_plugin_liteperm/nodelib.py b/src/nonebot_plugin_liteperm/nodelib.py index 7d2459b..946e1c8 100644 --- a/src/nonebot_plugin_liteperm/nodelib.py +++ b/src/nonebot_plugin_liteperm/nodelib.py @@ -16,6 +16,8 @@ def __init__( if permissions_data is None: permissions_data = {} self.permissions_data = permissions_data + self.node_dict = {} + self.__dump() def __str__(self): return json.dumps(self.permissions_data)