mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
adjust properties directly on leech
This commit is contained in:
parent
b9761ca109
commit
d359a600d9
1 changed files with 6 additions and 2 deletions
|
@ -843,8 +843,12 @@ did = ?, queue = %s, due = ?, mod = ?, usn = ? where id = ?""" % queue, data)
|
|||
# handle
|
||||
a = conf['leechAction']
|
||||
if a == 0:
|
||||
self.suspendCards([card.id])
|
||||
card.load()
|
||||
# if it has an old due, remove it from cram/relearning
|
||||
if card.odue:
|
||||
card.due = card.odue
|
||||
if card.odid:
|
||||
card.did = card.odid
|
||||
card.queue = -1
|
||||
# notify UI
|
||||
runHook("leech", card)
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue