fix suspensions

This commit is contained in:
Damien Elmes 2010-11-02 22:30:57 +09:00
parent 73119c93cf
commit a68334220a

View file

@ -1199,7 +1199,7 @@ group by cardTags.cardId""" % limit)
self.s.statement("""
update cards
set type = (case
when successive then -2 when reps then -3 else -1),
when successive then -2 when reps then -3 else -1 end),
priority = -3, modified = :t, isDue=0
where type >= 0 and id in %s""" % ids2str(ids), t=time.time())
self.flushMod()