From 163ebc44a5696e16454d9bc2fe4c35c6303532e0 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Sun, 23 Aug 2026 00:01:57 +0300 Subject: [PATCH] Fix id eval filter bug --- src/lang.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lang.rs b/src/lang.rs index 5322791..12cce9c 100644 --- a/src/lang.rs +++ b/src/lang.rs @@ -675,7 +675,7 @@ impl DeckSettings { list = state .dictionary - .par_iter() + .iter() .enumerate() .filter(|(_, word)| { let mut more = rhai::Map::new(); @@ -684,7 +684,7 @@ impl DeckSettings { } let mut scope = Scope::new(); scope - .push_constant("id", word.id.0) + .push_constant("id", word.id.0 as i64) .push_constant("key", word.key.clone()) .push_constant("value", word.value.clone()) .push_constant("tags", word.tags.clone())