mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove obsolete reference to card tags, don't store card tags on import
This commit is contained in:
parent
ea2fa24fed
commit
c90828349c
2 changed files with 2 additions and 1 deletions
|
@ -191,7 +191,7 @@ order by cards.created""" % strids)
|
||||||
self.deck.updateProgress()
|
self.deck.updateProgress()
|
||||||
if self.includeTags:
|
if self.includeTags:
|
||||||
self.cardTags = dict(self.deck.s.all("""
|
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
|
where cards.factId = facts.id
|
||||||
and cards.id in %s
|
and cards.id in %s
|
||||||
order by cards.created""" % strids))
|
order by cards.created""" % strids))
|
||||||
|
|
|
@ -202,6 +202,7 @@ where factId in (%s)""" % ",".join([str(s) for s in factIds]))
|
||||||
data['due'] = t
|
data['due'] = t
|
||||||
self._now += .00001
|
self._now += .00001
|
||||||
data.update(card.__dict__)
|
data.update(card.__dict__)
|
||||||
|
data['tags'] = u""
|
||||||
self.cardIds.append(data['id'])
|
self.cardIds.append(data['id'])
|
||||||
data['combinedDue'] = data['due']
|
data['combinedDue'] = data['due']
|
||||||
data['isDue'] = data['combinedDue'] < time.time()
|
data['isDue'] = data['combinedDue'] < time.time()
|
||||||
|
|
Loading…
Reference in a new issue