Initial support for _old and _new

This commit is contained in:
2026-06-01 09:51:21 +02:00
parent c2e915226e
commit 9e8b9ac191
4 changed files with 86 additions and 41 deletions
+2 -1
View File
@@ -167,7 +167,8 @@ def apply_actions_and_regenerate_grouped(root_dir, data, student_id,
result = content['result']
d_notes[label] = str(result.get('score', 0))
pdf_path = Path(root_dir) / "Copies" / f"Copie{student_id}" / f"{label}.pdf"
# pdf_path = Path(root_dir) / "Copies" / f"Copie{student_id}" / f"{label}.pdf"
pdf_path = content.get('pdf_path')
if not os.path.exists(pdf_path): continue
(base_img, _, _) = annotating.make_base_image(pdf_path)