mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix ordinal case in write_template
Internal card ordinals start at 0, so add 1 again when writing a template search string from a parsed ordinal.
This commit is contained in:
parent
8c6d0e6229
commit
ca62f3ef80
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ fn write_single_field(field: &str, text: &str, is_re: bool) -> String {
|
|||
|
||||
fn write_template(template: &TemplateKind) -> String {
|
||||
match template {
|
||||
TemplateKind::Ordinal(u) => format!("\"card:{}\"", u),
|
||||
TemplateKind::Ordinal(u) => format!("\"card:{}\"", u + 1),
|
||||
TemplateKind::Name(s) => format!("\"card:{}\"", s),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue