Финальное исправление ошибок
This commit is contained in:
@@ -136,7 +136,7 @@ pub fn search_tasks(app_handle: tauri::AppHandle, value: String) -> Value {
|
||||
let res1 = res.clone();
|
||||
let binding1 = data.clone();
|
||||
for (name, score) in res1 {
|
||||
if score != 0.0 {
|
||||
if score > 0.6 {
|
||||
for (key, value) in binding1["tasks"].as_object().unwrap() {
|
||||
if value.get("name").unwrap().as_str().unwrap().to_lowercase().as_str() == name {
|
||||
result[key] = binding1["tasks"].get(key).unwrap().clone();
|
||||
|
||||
Reference in New Issue
Block a user