modify: 修改 QueueOperation
This commit is contained in:
@@ -19,3 +19,8 @@ cache/
|
|||||||
|
|
||||||
# test files
|
# test files
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
|
|
||||||
|
# dynamic library
|
||||||
|
*.so
|
||||||
|
*.dll
|
||||||
|
*.pyd
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
3.13
|
3.13t
|
||||||
|
|||||||
@@ -348,9 +348,7 @@ impl QueueOperation {
|
|||||||
.get()
|
.get()
|
||||||
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(e.to_string()))?;
|
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(e.to_string()))?;
|
||||||
let mut stmt = conn
|
let mut stmt = conn
|
||||||
.prepare(
|
.prepare("SELECT * FROM messages WHERE id = ?1 AND (status = ?2 OR status = ?3)")
|
||||||
"SELECT result, status FROM messages WHERE id = ?1 AND (status = ?2 OR status = ?3)",
|
|
||||||
)
|
|
||||||
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(e.to_string()))?;
|
.map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(e.to_string()))?;
|
||||||
let mut mapped_rows = stmt
|
let mut mapped_rows = stmt
|
||||||
.query_map(params![&id, 2, 3], |row| {
|
.query_map(params![&id, 2, 3], |row| {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user