mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add {{Subdeck}} special field
If the deck is a several levels into a tree, it can be needlessly verbose to list them.
This commit is contained in:
parent
f3fd5fb2fe
commit
dd0e6f2a65
1 changed files with 1 additions and 0 deletions
|
@ -498,6 +498,7 @@ where c.nid = n.id and c.id in %s group by nid""" % ids2str(cids)):
|
|||
fields['Tags'] = data[5].strip()
|
||||
fields['Type'] = model['name']
|
||||
fields['Deck'] = self.decks.name(data[3])
|
||||
fields['Subdeck'] = fields['Deck'].split('::')[-1]
|
||||
if model['type'] == MODEL_STD:
|
||||
template = model['tmpls'][data[4]]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue