now all clients are updated, set delay1 = 0 if 600

This commit is contained in:
Damien Elmes 2011-01-29 11:01:43 +09:00
parent eb0bb89f44
commit ab9451253c

View file

@ -3741,8 +3741,7 @@ class DeckStorage(object):
update cards set type = type - 3 where type between 0 and 2 and priority = -3""")
# - new delay1 handling
if deck.delay1 > 7:
# we treat 600==0 to avoid breaking older clients
deck.delay1 = 600
deck.delay1 = 0
# unsuspend buried/rev early - can remove priorities in the future
ids = deck.s.column0(
"select id from cards where type > 2 or priority between -2 and -1")