Fix id eval filter bug
This commit is contained in:
1 parent
d42d618066
commit
163ebc44a5
1 file changed
+2
-2
+2
-2
@@ -675,7 +675,7 @@ impl DeckSettings {
|
|||||||
|
|
||||||
list = state
|
list = state
|
||||||
.dictionary
|
.dictionary
|
||||||
.par_iter()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.filter(|(_, word)| {
|
.filter(|(_, word)| {
|
||||||
let mut more = rhai::Map::new();
|
let mut more = rhai::Map::new();
|
||||||
@@ -684,7 +684,7 @@ impl DeckSettings {
|
|||||||
}
|
}
|
||||||
let mut scope = Scope::new();
|
let mut scope = Scope::new();
|
||||||
scope
|
scope
|
||||||
.push_constant("id", word.id.0)
|
.push_constant("id", word.id.0 as i64)
|
||||||
.push_constant("key", word.key.clone())
|
.push_constant("key", word.key.clone())
|
||||||
.push_constant("value", word.value.clone())
|
.push_constant("value", word.value.clone())
|
||||||
.push_constant("tags", word.tags.clone())
|
.push_constant("tags", word.tags.clone())
|
||||||
|
|||||||
Reference in new issue
Block a user