From 83e27a12cebf6db41dcce1f28ac6c94e9d9f14da Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 26 Feb 2009 00:49:54 +0900 Subject: [PATCH] fix extra suspend tags --- anki/deck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/deck.py b/anki/deck.py index 60bf108a4..b234c57eb 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -747,7 +747,7 @@ and priority in (1,2,3,4) and type in (0, 1)""", time=time) ids = tagIds(self.s, suspend) self.s.statement( "update tags set priority = 0 where id in %s" % - ids2str(ids)) + ids2str(ids.values())) cards = self.s.all(""" select cardTags.cardId, case min(tags.priority) when 0 then 0 else max(tags.priority) end