From 64e4d53879670fc889dadebc8d0f1f956f70bf12 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 18 Jan 2026 21:38:16 +0100 Subject: [PATCH] Update engine.py --- engine.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine.py b/engine.py index ac48afd..325c332 100644 --- a/engine.py +++ b/engine.py @@ -294,4 +294,13 @@ class SorterEngine: cursor = conn.cursor() cursor.execute("DELETE FROM staging_area WHERE original_path = ?", (original_path,)) conn.commit() + conn.close() + + @staticmethod + def clear_staged_item(original_path): + """Surgically removes one item from staging.""" + conn = sqlite3.connect(SorterEngine.DB_PATH) + cursor = conn.cursor() + cursor.execute("DELETE FROM staging_area WHERE original_path = ?", (original_path,)) + conn.commit() conn.close() \ No newline at end of file