mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add c<n> for conditional generation of specific clozes
This commit is contained in:
parent
b3ff6044c8
commit
5f7c80a2cd
1 changed files with 1 additions and 0 deletions
|
@ -476,6 +476,7 @@ where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)):
|
|||
else:
|
||||
template = model['tmpls'][0]
|
||||
fields['Card'] = template['name']
|
||||
fields['c%d' % (data[4]+1)] = "1"
|
||||
# render q & a
|
||||
d = dict(id=data[0])
|
||||
for (type, format) in (("q", template['qfmt']), ("a", template['afmt'])):
|
||||
|
|
Loading…
Reference in a new issue