Fix correction counting : make the things global

master
Sébastien Miquel 2026-02-17 06:58:46 +01:00
parent 00fc8d07fb
commit 6d17633108
1 changed files with 1 additions and 0 deletions

View File

@ -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] tasks_to_process = [t for t in tasks if (str(t[0]), t[1]) not in completed_set]
def process_single_task(task_tuple): def process_single_task(task_tuple):
global pro_count, flash_count
file_path, label = task_tuple file_path, label = task_tuple
group_name = os.path.splitext(file_path)[0] group_name = os.path.splitext(file_path)[0]
json_path = group_name + '.json' json_path = group_name + '.json'