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