diff --git a/.gitignore b/.gitignore index 74752a4..45a17ea 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,9 @@ cache/ .vscode/ # test files -.pytest_cache/ \ No newline at end of file +.pytest_cache/ + +# dynamic library +*.so +*.dll +*.pyd diff --git a/.python-version b/.python-version index 24ee5b1..9b1d4ba 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.13 +3.13t diff --git a/to_json_utils.py b/scripts/to_json_utils.py similarity index 100% rename from to_json_utils.py rename to scripts/to_json_utils.py diff --git a/src/core/src/queue_operation.rs b/src/core/src/queue_operation.rs index a60dc50..701f6d2 100644 --- a/src/core/src/queue_operation.rs +++ b/src/core/src/queue_operation.rs @@ -348,9 +348,7 @@ impl QueueOperation { .get() .map_err(|e| PyErr::new::(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::(e.to_string()))?; let mut mapped_rows = stmt .query_map(params![&id, 2, 3], |row| { diff --git a/src/queue_sqlite/core/core.pyd b/src/queue_sqlite/core/core.pyd index 847ccd3..7fec2c2 100644 Binary files a/src/queue_sqlite/core/core.pyd and b/src/queue_sqlite/core/core.pyd differ