Force rebuild on history import

Before the v2.0.x release, deleting the table had the same effect, but that's not the
case anymore
This commit is contained in:
Laurent Arnoud 2021-03-04 21:08:32 +01:00
parent f088a99138
commit 2b859a7181
No known key found for this signature in database
GPG Key ID: A79DAB2374F95DD5
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@ def insert_qb(history, dest):
'INSERT INTO History (url,title,atime,redirect) VALUES (?,?,?,?)',
history
)
cursor.execute('DROP TABLE CompletionHistory')
cursor.execute('UPDATE CompletionMetaInfo SET value = 1 '
'WHERE key = "force_rebuild"')
conn.commit()
conn.close()