mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
can't use _card.note_type() in clayout
This commit is contained in:
parent
a4efd9910e
commit
1844cc84cc
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class TemplateRenderContext:
|
|||
|
||||
# add (most) special fields
|
||||
fields["Tags"] = self._note.stringTags().strip()
|
||||
fields["Type"] = self._card.note_type()["name"]
|
||||
fields["Type"] = self._note_type["name"]
|
||||
fields["Deck"] = self._col.decks.name(self._card.odid or self._card.did)
|
||||
fields["Subdeck"] = DeckManager.basename(fields["Deck"])
|
||||
if self._template:
|
||||
|
|
Loading…
Reference in a new issue