From 072e93590b9af5688797737af309973520ee286a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 14 May 2012 05:44:48 +0900 Subject: [PATCH] don't bump mod time when expired failed cards --- anki/sched.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/anki/sched.py b/anki/sched.py index 42e0d1d77..09ab1cf24 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -550,12 +550,16 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff) extra = " and did in "+ids2str(self.col.decks.allIds()) if expiredOnly: extra += " and odue <= %d" % self.today + mod = self.col.db.mod self.col.db.execute(""" update cards set due = odue, queue = 2, mod = %d, usn = %d, odue = 0 where queue = 1 and type = 2 %s """ % (intTime(), self.col.usn(), extra)) + if expiredOnly: + # we don't want to bump the mod time when removing expired + self.col.db.mod = mod def _lrnForDeck(self, did): return self.col.db.scalar(