deauthing should reset lastUsn to 0

thanks to houssam for the heads up!
This commit is contained in:
Damien Elmes 2014-07-20 03:37:31 +09:00
parent ed34d5bc94
commit f54f5870fa

View file

@ -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()