no duplicates save on storage
This commit is contained in:
parent
1b62714fd7
commit
e0ed0341a5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ async def rec(self, m):
|
||||||
if pre == '':
|
if pre == '':
|
||||||
beg.insert(dict(word=w))
|
beg.insert(dict(word=w))
|
||||||
else:
|
else:
|
||||||
prew.insert(dict(pre=pre, pro=w))
|
prew.insert_ignore(dict(pre=pre, pro=w),['id'])
|
||||||
pre = w
|
pre = w
|
||||||
noch.insert(dict(word=w))
|
noch.insert(dict(word=w))
|
||||||
end.insert(dict(word=pre))
|
end.insert(dict(word=pre))
|
||||||
|
|
Loading…
Reference in a new issue