mirror of
https://github.com/ankitects/anki.git
synced 2025-12-30 23:32:57 -05:00
parent
f343558b51
commit
730dd5bdd2
1 changed files with 2 additions and 1 deletions
|
|
@ -454,7 +454,8 @@ 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.execute("vacuum")
|
||||
self.db.execute("analyze")
|
||||
self.db.commit()
|
||||
|
||||
# Media syncing: zips
|
||||
|
|
|
|||
Loading…
Reference in a new issue