adjust properties directly on leech

This commit is contained in:
Damien Elmes 2012-05-05 01:20:18 +09:00
parent b9761ca109
commit d359a600d9

View file

@ -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