mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
fix Deck field in card templates showing filtered deck
https://anki.tenderapp.com/discussions/ankidesktop/38984-deck-changed
This commit is contained in:
parent
d0ec26709b
commit
e16d6055c1
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ def fields_for_rendering(col: anki.storage._Collection, card: Card, note: Note):
|
|||
# add special fields
|
||||
fields["Tags"] = note.stringTags().strip()
|
||||
fields["Type"] = card.note_type()["name"]
|
||||
fields["Deck"] = col.decks.name(card.did)
|
||||
fields["Deck"] = col.decks.name(card.odid or card.did)
|
||||
fields["Subdeck"] = fields["Deck"].split("::")[-1]
|
||||
fields["Card"] = card.template()["name"] # type: ignore
|
||||
flag = card.userFlag()
|
||||
|
|
|
|||
Loading…
Reference in a new issue