mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05: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:
|
else:
|
||||||
template = model['tmpls'][0]
|
template = model['tmpls'][0]
|
||||||
fields['Card'] = template['name']
|
fields['Card'] = template['name']
|
||||||
|
fields['c%d' % (data[4]+1)] = "1"
|
||||||
# render q & a
|
# render q & a
|
||||||
d = dict(id=data[0])
|
d = dict(id=data[0])
|
||||||
for (type, format) in (("q", template['qfmt']), ("a", template['afmt'])):
|
for (type, format) in (("q", template['qfmt']), ("a", template['afmt'])):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue