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