remove obsolete reference to card tags, don't store card tags on import

This commit is contained in:
Damien Elmes 2010-01-23 10:59:40 +09:00
parent ea2fa24fed
commit c90828349c
2 changed files with 2 additions and 1 deletions

View file

@ -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))

View file

@ -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()