From e2ad8a7ce321fad26f7dd63cee24edcd7be3d523 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 2 Jul 2009 23:42:05 +0900 Subject: [PATCH] bump deck mod time on suspend/unsuspend --- anki/deck.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anki/deck.py b/anki/deck.py index 64eccf438..7908f4c96 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -903,6 +903,7 @@ group by cardTags.cardId""" % limit) "update cards set isDue=0, priority=-3, modified=:t " "where id in %s" % ids2str(ids), t=time.time()) self.rebuildCounts(full=False) + self.flushMod() self.finishProgress() def unsuspendCards(self, ids): @@ -912,6 +913,7 @@ group by cardTags.cardId""" % limit) ids2str(ids), t=time.time()) self.updatePriorities(ids) self.rebuildCounts(full=False) + self.flushMod() self.finishProgress() # Card/fact counts - all in deck, not just due