Skip to content

Commit

Permalink
Reporting bugfix (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed May 9, 2024
1 parent 5e03b39 commit 128846d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion artemis/reporting/task_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import hashlib
import json
import os
import shutil
Expand All @@ -23,7 +24,8 @@ def handle_single_task(report_generation_task: ReportGenerationTask) -> Path:
if report_generation_task.output_location:
shutil.copy(
Path(report_generation_task.output_location) / "advanced" / "output.json",
previous_reports_directory,
Path(previous_reports_directory)
/ (hashlib.sha256(report_generation_task.output_location.encode("ascii")).hexdigest() + ".json"),
)
else:
previous_reports_directory = None
Expand Down

0 comments on commit 128846d

Please sign in to comment.