don't bother checking if temp suspended cards are modified or not

This commit is contained in:
Damien Elmes 2011-02-12 23:36:17 +09:00
parent 218f823037
commit 9f55c831c0

View file

@ -3625,12 +3625,9 @@ class DeckStorage(object):
if deck.delay1 > 7: if deck.delay1 > 7:
deck.delay1 = 0 deck.delay1 = 0
# unsuspend buried/rev early # unsuspend buried/rev early
ids = deck.s.column0( deck.s.statement(
"select id from cards where type > 2") "update cards set type = relativeDelay where type > 2")
if ids: deck.s.commit()
deck.s.statement(
"update cards set type = relativeDelay where type > 2")
deck.s.commit()
# check if deck has been moved, and disable syncing # check if deck has been moved, and disable syncing
deck.checkSyncHash() deck.checkSyncHash()
# determine starting factor for new cards # determine starting factor for new cards