mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
check for missing parents on sync
This commit is contained in:
parent
6e8f2f5993
commit
cb1e4d4645
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ select count() from notes where id not in (select distinct nid from cards)""")
|
|||
for m in self.col.models.all():
|
||||
assert m['usn'] != -1
|
||||
self.col.sched.reset()
|
||||
# check for missing parent decks
|
||||
self.col.sched.deckDueList()
|
||||
# return summary of deck
|
||||
return [
|
||||
list(self.col.sched.counts()),
|
||||
self.col.db.scalar("select count() from cards"),
|
||||
|
|
Loading…
Reference in a new issue