mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
80fe6e8692
commit
53c768e61c
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue