mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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());
|
.or_insert_with(|| flag_name(card.flags).into());
|
||||||
map.entry("Card")
|
map.entry("Card")
|
||||||
.or_insert_with(|| template.name.clone().into());
|
.or_insert_with(|| template.name.clone().into());
|
||||||
|
map.entry("CardID")
|
||||||
|
.or_insert_with(|| card.id.to_string().into());
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue