modify: 修改 QueueOperation

This commit is contained in:
chakcy 2025-09-23 10:34:58 +08:00
parent 7189d6e2a4
commit 80b1c89014
5 changed files with 8 additions and 5 deletions

7
.gitignore vendored
View File

@ -18,4 +18,9 @@ cache/
.vscode/
# test files
.pytest_cache/
.pytest_cache/
# dynamic library
*.so
*.dll
*.pyd

View File

@ -1 +1 @@
3.13
3.13t

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.