This commit is contained in:
yumoqing 2026-03-20 15:49:59 +08:00
parent d11a990ed9
commit e81773bb98

View File

@ -1598,15 +1598,15 @@ async def main():
for path in paths.split('\n'): for path in paths.split('\n'):
if not path: if not path:
continue continue
id = getID()
ns = { ns = {
'id': id,
'path': path 'path': path
} }
recs = await sor.R('permission', ns.copy()) recs = await sor.R('permission', ns.copy())
if recs: if recs:
continue continue
cnt += 1 cnt += 1
id = getID()
ns['id'] = id
await sor.C('permission', ns) await sor.C('permission', ns)
print(f'{cnt} path inserted') print(f'{cnt} path inserted')