bugfix
This commit is contained in:
parent
d11a990ed9
commit
e81773bb98
@ -1598,15 +1598,15 @@ async def main():
|
||||
for path in paths.split('\n'):
|
||||
if not path:
|
||||
continue
|
||||
id = getID()
|
||||
ns = {
|
||||
'id': id,
|
||||
'path': path
|
||||
}
|
||||
recs = await sor.R('permission', ns.copy())
|
||||
if recs:
|
||||
continue
|
||||
cnt += 1
|
||||
id = getID()
|
||||
ns['id'] = id
|
||||
await sor.C('permission', ns)
|
||||
print(f'{cnt} path inserted')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user