mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
accept kwargs in tagslist
This commit is contained in:
parent
d127ae4175
commit
9b4da171fe
1 changed files with 3 additions and 2 deletions
|
@ -1405,13 +1405,14 @@ where id in %s""" % ids2str(cardIds), newId=newCardModelId)
|
|||
# Tags
|
||||
##########################################################################
|
||||
|
||||
def tagsList(self, where="", priority=", cards.priority"):
|
||||
def tagsList(self, where="", priority=", cards.priority", kwargs={}):
|
||||
"Return a list of (cardId, allTags, priority)"
|
||||
return self.s.all("""
|
||||
select cards.id, facts.tags || " " || models.tags || " " ||
|
||||
cardModels.name %s from cards, facts, models, cardModels where
|
||||
cards.factId == facts.id and facts.modelId == models.id
|
||||
and cards.cardModelId = cardModels.id %s""" % (priority, where))
|
||||
and cards.cardModelId = cardModels.id %s""" % (priority, where),
|
||||
**kwargs)
|
||||
|
||||
return self.s.all("""
|
||||
select cards.id, facts.tags || " " || models.tags || " " ||
|
||||
|
|
Loading…
Reference in a new issue