From 6d17633108a1bd0066e910c68a4cff35d3d3464d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= Date: Tue, 17 Feb 2026 06:58:46 +0100 Subject: [PATCH] Fix correction counting : make the things global --- correction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/correction.py b/correction.py index 7551e83..128dbf8 100644 --- a/correction.py +++ b/correction.py @@ -237,6 +237,7 @@ completed_set = set((str(f), l) for f, l in completed_tasks) tasks_to_process = [t for t in tasks if (str(t[0]), t[1]) not in completed_set] def process_single_task(task_tuple): + global pro_count, flash_count file_path, label = task_tuple group_name = os.path.splitext(file_path)[0] json_path = group_name + '.json'