Update engine.py

This commit is contained in:
2026-01-18 21:38:16 +01:00
parent e9739cc782
commit 64e4d53879

View File

@@ -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()