mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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())
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue