Update engine.py

This commit is contained in:
2026-01-20 13:54:06 +01:00
parent 2854907359
commit dd454ebf6f

View File

@@ -246,6 +246,15 @@ class SorterEngine:
conn.commit()
conn.close()
@staticmethod
def clear_staging_area():
"""Clears all items from the staging area."""
conn = sqlite3.connect(SorterEngine.DB_PATH)
cursor = conn.cursor()
cursor.execute("DELETE FROM staging_area")
conn.commit()
conn.close()
@staticmethod
def get_staged_data():
"""Retrieves current tagged/staged images."""