diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 0a7fc311b..ce15364e3 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -450,7 +450,7 @@ Please do not file a bug report with Anki.
""") self.save() self.moveToState("getQuestion") - def onCardAnsweredHook(self, card, isLeech): + def onCardAnsweredHook(self, cardId, isLeech): if not isLeech: self.setNotice() return @@ -458,7 +458,8 @@ Please do not file a bug report with Anki.
""") %s... is a leech.""") % stripHTML(stripSounds(self.currentCard.question)).\ replace("\n", " ")[0:30]) - if isLeech: + if isLeech and self.deck.s.scalar( + "select 1 from cards where id = :id and priority < 1", id=cardId): txt += _(" It has been suspended.") self.setNotice(txt)