mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
deauthing should reset lastUsn to 0
thanks to houssam for the heads up!
This commit is contained in:
parent
ed34d5bc94
commit
f54f5870fa
1 changed files with 1 additions and 0 deletions
|
@ -441,6 +441,7 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0);
|
|||
|
||||
def forceResync(self):
|
||||
self.db.execute("delete from media")
|
||||
self.db.execute("update meta set lastUsn=0,dirMod=0")
|
||||
self.db.execute("vacuum analyze")
|
||||
self.db.commit()
|
||||
|
||||
|
|
Loading…
Reference in a new issue