From c10d27879be8408343cd110eab34d95795f25e24 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Mar 2026 11:43:22 +0800 Subject: [PATCH] bugfix --- load_path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/load_path.py b/load_path.py index ed638af..4ab6766 100644 --- a/load_path.py +++ b/load_path.py @@ -1102,7 +1102,7 @@ async def add_roleperm(sor, roleid, permid): print(f'{roleid}, {permid} perm add') return -async def add_roles_perm(perm, roles): +async def add_roles_perm(sor, perm, roles): perms = [perm] for role in roles: if role in ['anonymous', 'any', 'logined']: @@ -1146,7 +1146,7 @@ async def main(): ns['id'] = id await sor.C('permission', ns.copy()) perm = DictObject(**ns) - await add_roles_perm(perm, roles) + await add_roles_perm(sor, perm, roles) print(f'{cnt} path inserted') if __name__ == '__main__':