diff --git a/scripts/load_path.py b/scripts/load_path.py index d812d6c..9da528f 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -104,7 +104,8 @@ async def register(): # Verify async with DBPools().sqlorContext("pipeline") as sor: cnt = await sor.sqlExe( - "SELECT COUNT(*) as n FROM permission WHERE path LIKE '/pipeline%' OR path LIKE '/showcase%'", {}) + "SELECT COUNT(*) as n FROM permission WHERE path LIKE ${p1}$ OR path LIKE ${p2}$", + {"p1": "/pipeline%", "p2": "/showcase%"}) print(f"Total pipeline permissions: {cnt[0].n}")