From c90828349ce27c89cf3e6ce5f4abd64f849cf573 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 23 Jan 2010 10:59:40 +0900 Subject: [PATCH] remove obsolete reference to card tags, don't store card tags on import --- anki/exporting.py | 2 +- anki/importing/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/exporting.py b/anki/exporting.py index c4695b429..11f2440b6 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -191,7 +191,7 @@ order by cards.created""" % strids) self.deck.updateProgress() if self.includeTags: self.cardTags = dict(self.deck.s.all(""" -select cards.id, cards.tags || "," || facts.tags from cards, facts +select cards.id, facts.tags from cards, facts where cards.factId = facts.id and cards.id in %s order by cards.created""" % strids)) diff --git a/anki/importing/__init__.py b/anki/importing/__init__.py index 4c86b1b23..92303f17e 100644 --- a/anki/importing/__init__.py +++ b/anki/importing/__init__.py @@ -202,6 +202,7 @@ where factId in (%s)""" % ",".join([str(s) for s in factIds])) data['due'] = t self._now += .00001 data.update(card.__dict__) + data['tags'] = u"" self.cardIds.append(data['id']) data['combinedDue'] = data['due'] data['isDue'] = data['combinedDue'] < time.time()