Initial support for user general remarks

This commit is contained in:
sebastien committed 2026-10-28 13:51:59 +01:00
1 parent a38c1ff4b3
commit 2c9dc65640
16 files changed
+606 -20

No files matched your search

+6
View File
@@ -1,6 +1,9 @@
from __future__ import annotations
from pathlib import Path
import shutil
from copienator import general_remarks
from PIL import Image
@@ -92,6 +95,9 @@ def publish_answer_returns(
all_labels = utils.read_all_labels(root)
with staged_directory(answers_dir) as staging:
general = source / general_remarks.IMAGE_FILENAME
if general.is_file():
shutil.copy2(general, staging / general.name)
for label in sorted(labels, key=utils.natural_key):
paths = []
if options["context"]: