mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
clearer message when facts missing after sync
This commit is contained in:
parent
6860bba0de
commit
c1d15b8a9e
1 changed files with 3 additions and 1 deletions
|
@ -207,7 +207,9 @@ class SyncTools(object):
|
|||
cardIds = [x[0] for x in reply['added-cards']]
|
||||
self.deck.updateCardTags(cardIds)
|
||||
self.rebuildPriorities(cardIds)
|
||||
assert self.missingFacts() == 0
|
||||
if self.missingFacts() != 0:
|
||||
raise Exception(
|
||||
"Facts missing after sync. Please run Tools>Advanced>Check DB.")
|
||||
|
||||
def missingFacts(self):
|
||||
return self.deck.s.scalar(
|
||||
|
|
Loading…
Reference in a new issue