reload card after suspending it in leech handler

this fixes the issue with display of due time in browser after an unsuspend
This commit is contained in:
Damien Elmes 2012-01-24 01:24:46 +09:00
parent 4f1bcb9356
commit 2a76c8f4f0

View file

@ -711,7 +711,7 @@ did = ? and queue = 2 and due <= ? %s limit ?""" % order,
a = conf['leechAction']
if a == 0:
self.suspendCards([card.id])
card.queue = -1
card.load()
# notify UI
runHook("leech", card)
return True