modify: 修改 QueueOperation

This commit is contained in:
2025-09-23 10:34:58 +08:00
parent 7189d6e2a4
commit 80b1c89014
5 changed files with 8 additions and 5 deletions
+1 -3
View File
@@ -348,9 +348,7 @@ impl QueueOperation {
.get()
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(e.to_string()))?;
let mut stmt = conn
.prepare(
"SELECT result, status FROM messages WHERE id = ?1 AND (status = ?2 OR status = ?3)",
)
.prepare("SELECT * FROM messages WHERE id = ?1 AND (status = ?2 OR status = ?3)")
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(e.to_string()))?;
let mut mapped_rows = stmt
.query_map(params![&id, 2, 3], |row| {
Binary file not shown.