Update engine.py

This commit is contained in:
2026-01-18 22:07:35 +01:00
parent f6c41f40b2
commit 4af646035b

View File

@@ -230,7 +230,8 @@ class SorterEngine:
cursor.execute("SELECT * FROM staging_area") cursor.execute("SELECT * FROM staging_area")
rows = cursor.fetchall() rows = cursor.fetchall()
conn.close() conn.close()
return {r[0]: {"cat": r[1], "name": r[2]} for r in rows} # FIXED: Added "marked": r[3] to the dictionary
return {r[0]: {"cat": r[1], "name": r[2], "marked": r[3]} for r in rows}
@staticmethod @staticmethod
def commit_staging(output_root, cleanup_mode, source_root=None): def commit_staging(output_root, cleanup_mode, source_root=None):