Финальное исправление ошибок

This commit is contained in:
2024-06-23 21:12:30 +07:00
parent 187d2aa655
commit 87d6b83cb9
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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();