mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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
|
# handle
|
||||||
a = conf['leechAction']
|
a = conf['leechAction']
|
||||||
if a == 0:
|
if a == 0:
|
||||||
self.suspendCards([card.id])
|
# if it has an old due, remove it from cram/relearning
|
||||||
card.load()
|
if card.odue:
|
||||||
|
card.due = card.odue
|
||||||
|
if card.odid:
|
||||||
|
card.did = card.odid
|
||||||
|
card.queue = -1
|
||||||
# notify UI
|
# notify UI
|
||||||
runHook("leech", card)
|
runHook("leech", card)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue