mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05: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):
|
def tagList(self):
|
||||||
return self.db.list("select name from tags order by name")
|
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):
|
def updateFactTags(self, fids=None):
|
||||||
"Add any missing tags to the tags list."
|
"Add any missing tags to the tags list."
|
||||||
if fids:
|
if fids:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue