Record the scoring runs, and name a session's sibling files apart from kept copies
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user