mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Feat/Card ID special field (#4046)
* Feat/Card ID special field * remove clone
This commit is contained in:
parent
06c0e4c14a
commit
a99beb71fe
1 changed files with 2 additions and 0 deletions
|
@ -183,6 +183,8 @@ impl Collection {
|
|||
.or_insert_with(|| flag_name(card.flags).into());
|
||||
map.entry("Card")
|
||||
.or_insert_with(|| template.name.clone().into());
|
||||
map.entry("CardID")
|
||||
.or_insert_with(|| card.id.to_string().into());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue