Update engine.py
This commit is contained in:
@@ -246,6 +246,15 @@ class SorterEngine:
|
|||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
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
|
@staticmethod
|
||||||
def get_staged_data():
|
def get_staged_data():
|
||||||
"""Retrieves current tagged/staged images."""
|
"""Retrieves current tagged/staged images."""
|
||||||
|
|||||||
Reference in New Issue
Block a user