Record the scoring runs, and name a session's sibling files apart from kept copies

This commit is contained in:
2026-10-02 17:20:15 +02:00
parent d104ea0b33
commit b436d2756d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ def archive(project_key: str, path: str, task: str, outcome: str, paths: Paths)
make_private(folder)
except OSError as failure:
return unarchived(failure.filename, failure.strerror)
for kept in session_files(path):
if kept != path and (unkept := mirror(pathlib.Path(kept), folder / "session" / os.path.basename(kept))):
for sibling in session_files(path):
if sibling != path and (unkept := mirror(pathlib.Path(sibling), folder / "session" / os.path.basename(sibling))):
return unkept
copy = folder / f"{hashlib.sha256(raw).hexdigest()}.jsonl"
verdict = copy.with_suffix(".verdict.md")