fix sanityCheck2 bug
This commit is contained in:
parent
9642ce9337
commit
1efafedcaa
@ -191,7 +191,7 @@ select count() from notes where id not in (select distinct nid from cards)"""):
|
|||||||
for t in "cards", "notes", "revlog", "graves":
|
for t in "cards", "notes", "revlog", "graves":
|
||||||
if self.col.db.scalar(
|
if self.col.db.scalar(
|
||||||
"select count() from %s where usn = -1" % t):
|
"select count() from %s where usn = -1" % t):
|
||||||
return "%t had usn = -1" % t
|
return "%s had usn = -1" % t
|
||||||
for g in self.col.decks.all():
|
for g in self.col.decks.all():
|
||||||
if g['usn'] == -1:
|
if g['usn'] == -1:
|
||||||
return "deck had usn = -1"
|
return "deck had usn = -1"
|
||||||
|
Loading…
Reference in New Issue
Block a user