no duplicates save on storage

This commit is contained in:
lickthecheese 2020-06-19 11:45:32 -04:00
parent 1b62714fd7
commit e0ed0341a5

View file

@ -16,7 +16,7 @@ async def rec(self, m):
if pre == '':
beg.insert(dict(word=w))
else:
prew.insert(dict(pre=pre, pro=w))
prew.insert_ignore(dict(pre=pre, pro=w),['id'])
pre = w
noch.insert(dict(word=w))
end.insert(dict(word=pre))