mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
give the card id on cardAnswered hook, not old card
This commit is contained in:
parent
17630fa339
commit
4bea904dc6
1 changed files with 2 additions and 2 deletions
|
@ -415,8 +415,8 @@ where id != :id and factId = :factId""",
|
||||||
self.modified = now
|
self.modified = now
|
||||||
isLeech = self.isLeech(card)
|
isLeech = self.isLeech(card)
|
||||||
if isLeech:
|
if isLeech:
|
||||||
card = self.handleLeech(card)
|
self.handleLeech(card)
|
||||||
runHook("cardAnswered", card, isLeech)
|
runHook("cardAnswered", card.id, isLeech)
|
||||||
self.setUndoEnd(undoName)
|
self.setUndoEnd(undoName)
|
||||||
|
|
||||||
def isLeech(self, card):
|
def isLeech(self, card):
|
||||||
|
|
Loading…
Reference in a new issue