mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
don't bump mod time when expired failed cards
This commit is contained in:
parent
d47b0726b0
commit
072e93590b
1 changed files with 4 additions and 0 deletions
|
@ -550,12 +550,16 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
||||||
extra = " and did in "+ids2str(self.col.decks.allIds())
|
extra = " and did in "+ids2str(self.col.decks.allIds())
|
||||||
if expiredOnly:
|
if expiredOnly:
|
||||||
extra += " and odue <= %d" % self.today
|
extra += " and odue <= %d" % self.today
|
||||||
|
mod = self.col.db.mod
|
||||||
self.col.db.execute("""
|
self.col.db.execute("""
|
||||||
update cards set
|
update cards set
|
||||||
due = odue, queue = 2, mod = %d, usn = %d, odue = 0
|
due = odue, queue = 2, mod = %d, usn = %d, odue = 0
|
||||||
where queue = 1 and type = 2
|
where queue = 1 and type = 2
|
||||||
%s
|
%s
|
||||||
""" % (intTime(), self.col.usn(), extra))
|
""" % (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):
|
def _lrnForDeck(self, did):
|
||||||
return self.col.db.scalar(
|
return self.col.db.scalar(
|
||||||
|
|
Loading…
Reference in a new issue