don't clobber deck modified when expired cards on open

This commit is contained in:
Damien Elmes 2009-05-16 00:49:33 +09:00
parent 1e275db81d
commit ebf83d898e

View file

@ -2632,9 +2632,6 @@ class DeckStorage(object):
deck.checkDue() deck.checkDue()
if ((oldc != deck.failedSoonCount + deck.revCount + deck.newCount) or if ((oldc != deck.failedSoonCount + deck.revCount + deck.newCount) or
deck.modifiedSinceSave()): deck.modifiedSinceSave()):
# we don't want the deck marked as modified, but we don't want to
# bump the mod time either
deck.modified = deck.lastLoaded
deck.s.commit() deck.s.commit()
return deck return deck
Deck = staticmethod(Deck) Deck = staticmethod(Deck)