mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remove redundant cardHasTag()
This commit is contained in:
parent
173379f451
commit
aac840f375
1 changed files with 0 additions and 5 deletions
|
@ -503,11 +503,6 @@ where c.fid == f.id
|
|||
def tagList(self):
|
||||
return self.db.list("select name from tags order by name")
|
||||
|
||||
def cardHasTag(self, card, tag):
|
||||
tags = self.db.scalar("select tags from fact where id = :fid",
|
||||
fid=card.fid)
|
||||
return tag.lower() in parseTags(tags.lower())
|
||||
|
||||
def updateFactTags(self, fids=None):
|
||||
"Add any missing tags to the tags list."
|
||||
if fids:
|
||||
|
|
Loading…
Reference in a new issue