fix
This commit is contained in:
parent
761f924b55
commit
995526ec57
|
|
@ -105,6 +105,7 @@ async fn execute_python_command(_app: tauri::AppHandle, args: &[String]) -> Resu
|
||||||
}
|
}
|
||||||
} else if line.trim().starts_with('{') && line.trim().ends_with('}') {
|
} else if line.trim().starts_with('{') && line.trim().ends_with('}') {
|
||||||
// Fallback: try to parse as direct JSON result
|
// Fallback: try to parse as direct JSON result
|
||||||
|
println!("Python json rpc: {}", line);
|
||||||
if let Ok(json_value) = serde_json::from_str::<serde_json::Value>(line.trim()) {
|
if let Ok(json_value) = serde_json::from_str::<serde_json::Value>(line.trim()) {
|
||||||
// Check if this looks like a final result (has status field)
|
// Check if this looks like a final result (has status field)
|
||||||
if json_value.get("status").is_some() {
|
if json_value.get("status").is_some() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue