From dd454ebf6f4bf31d474396c9ea7aa6e0280b8e41 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 20 Jan 2026 13:54:06 +0100 Subject: [PATCH] Update engine.py --- engine.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine.py b/engine.py index cb0809b..2f270b2 100644 --- a/engine.py +++ b/engine.py @@ -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."""