Reload scheduler after full download

Fixes invalid state where schedVer=2 but v1 scheduler active
https://forums.ankiweb.net/t/not-able-to-fix-database-error/20483
This commit is contained in:
Damien Elmes 2022-06-02 16:42:43 +10:00
parent 80fe6e8692
commit 53c768e61c

View file

@ -315,6 +315,8 @@ class Collection(DeprecatedNamesMixin):
)
self.db = DBProxy(weakref.proxy(self._backend))
self.db.begin()
if after_full_sync:
self._load_scheduler()
def set_schema_modified(self) -> None:
self.db.execute("update col set scm=?", int_time(1000))