diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 4f98808fa..4ffd3dabc 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -146,7 +146,7 @@ class DeckModel(QAbstractTableModel): like = "%" + tag.replace('"', "") + "%" i = [id for (id, tags, pri) in self.deck.tagsList( 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}) if find(tag, tags)] if not ids: