diff --git a/set_role_perm.py b/set_role_perm.py index 534b511..3d0d1b2 100644 --- a/set_role_perm.py +++ b/set_role_perm.py @@ -45,7 +45,7 @@ async def main(): if '%' in path: perms = await sor.sqlExe("select * from permission where path like ${path}$", {'path': path}) else: - perms = await sor.R('permission', {'path', path}) + perms = await sor.R('permission', {'path': path}) if role in ['anonymous', 'logined']: for p in perms: await add_roleperm(sor, role, p.id)