mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
add card model tags back
This commit is contained in:
parent
1cd108b86c
commit
b11bbfbdbd
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class DeckModel(QAbstractTableModel):
|
||||||
like = "%" + tag.replace('"', "") + "%"
|
like = "%" + tag.replace('"', "") + "%"
|
||||||
i = [id for (id, tags, pri) in self.deck.tagsList(
|
i = [id for (id, tags, pri) in self.deck.tagsList(
|
||||||
where="""
|
where="""
|
||||||
and (facts.tags like :s or models.tags like :s)""",
|
and (facts.tags like :s or models.tags like :s or cardModels.name like :s)""",
|
||||||
kwargs = {'s': like})
|
kwargs = {'s': like})
|
||||||
if find(tag, tags)]
|
if find(tag, tags)]
|
||||||
if not ids:
|
if not ids:
|
||||||
|
|
Loading…
Reference in a new issue