From 1efafedcaa233b3484c6b7150bd59f9d430f1392 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 26 Feb 2013 15:23:01 +0900 Subject: [PATCH] fix sanityCheck2 bug --- anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index 9d5dd4c21..930377fac 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -191,7 +191,7 @@ select count() from notes where id not in (select distinct nid from cards)"""): for t in "cards", "notes", "revlog", "graves": if self.col.db.scalar( "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(): if g['usn'] == -1: return "deck had usn = -1"