don't need to removeFailed() when suspending

This commit is contained in:
Damien Elmes 2012-03-12 12:16:37 +09:00
parent dc589a5c15
commit ea64e4da1b
2 changed files with 0 additions and 2 deletions

View file

@ -983,7 +983,6 @@ your short-term review workload will become."""))
def suspendCards(self, ids):
"Suspend cards."
self.removeFailed(ids)
self.col.db.execute(
"update cards set queue=-1,mod=?,usn=? where id in "+
ids2str(ids), intTime(), self.col.usn())

View file

@ -428,7 +428,6 @@ def test_suspend():
c.load()
assert c.queue == 2
assert c.type == 2
assert c.due == 1
def test_cram():
d = getEmptyDeck()