bugfix
This commit is contained in:
parent
d11a990ed9
commit
e81773bb98
@ -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')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user