modify: 修改 QueueOperation
This commit is contained in:
parent
7189d6e2a4
commit
80b1c89014
7
.gitignore
vendored
7
.gitignore
vendored
@ -18,4 +18,9 @@ cache/
|
||||
.vscode/
|
||||
|
||||
# test files
|
||||
.pytest_cache/
|
||||
.pytest_cache/
|
||||
|
||||
# dynamic library
|
||||
*.so
|
||||
*.dll
|
||||
*.pyd
|
||||
|
||||
@ -1 +1 @@
|
||||
3.13
|
||||
3.13t
|
||||
|
||||
@ -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.
Loading…
x
Reference in New Issue
Block a user