From 4af646035be10cab4f13938ff1b441a4a7f0a0ce Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 18 Jan 2026 22:07:35 +0100 Subject: [PATCH] Update engine.py --- engine.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine.py b/engine.py index 326fece..338af7b 100644 --- a/engine.py +++ b/engine.py @@ -230,8 +230,9 @@ class SorterEngine: cursor.execute("SELECT * FROM staging_area") rows = cursor.fetchall() 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 def commit_staging(output_root, cleanup_mode, source_root=None): """Commits staging: renames/moves tagged files and cleans unmarked ones."""