mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
renderQA() wasn't used in the codebase
This commit is contained in:
parent
17ebdfc099
commit
836213e587
1 changed files with 0 additions and 14 deletions
|
@ -617,20 +617,6 @@ where c.nid = n.id and c.id in %s group by nid"""
|
|||
# Q/A generation
|
||||
##########################################################################
|
||||
|
||||
def renderQA(self, ids=None, type="card") -> List:
|
||||
# gather metadata
|
||||
if type == "card":
|
||||
where = "and c.id in " + ids2str(ids)
|
||||
elif type == "note":
|
||||
where = "and f.id in " + ids2str(ids)
|
||||
elif type == "model":
|
||||
where = "and m.id in " + ids2str(ids)
|
||||
elif type == "all":
|
||||
where = ""
|
||||
else:
|
||||
raise Exception()
|
||||
return [self._renderQA(*row) for row in self._qaData(where)]
|
||||
|
||||
# data is [cid, nid, mid, did, ord, tags, flds, cardFlags]
|
||||
def _renderQA(
|
||||
self, data: QAData, qfmt: Optional[str] = None, afmt: Optional[str] = None
|
||||
|
|
Loading…
Reference in a new issue