From 2a76c8f4f0bfb226dd7d899997f5e2cafc1fe280 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 24 Jan 2012 01:24:46 +0900 Subject: [PATCH] reload card after suspending it in leech handler this fixes the issue with display of due time in browser after an unsuspend --- anki/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 5c35aebf2..359f5576e 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -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