From a99beb71fe6abc30eb3daf953baa099152a9e7cc Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Mon, 2 Jun 2025 10:35:13 +0100 Subject: [PATCH] Feat/Card ID special field (#4046) * Feat/Card ID special field * remove clone --- rslib/src/notetype/render.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rslib/src/notetype/render.rs b/rslib/src/notetype/render.rs index 8f686b0a5..490886dda 100644 --- a/rslib/src/notetype/render.rs +++ b/rslib/src/notetype/render.rs @@ -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(()) }