Working state (mostly)

This commit is contained in:
2026-08-08 14:38:26 +02:00
parent 137a9a7868
commit f345f8bb4f
7 changed files with 32 additions and 22 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ def get_exam_file_content(folder_path, mode, label):
return direct_file.read_text(encoding="utf-8")
# 2. Search for grouped files: prefix[suffix1,suffix2,...]
for file_path in target_dir.glob("*[*]"):
for file_path in target_dir.iterdir():
if not file_path.is_file():
continue
name = file_path.name
if "[" in name and name.endswith("]"):
# Split 'prefix[suffixes]' -> 'prefix', 'suffixes'