Skip to content

Commit

Permalink
fix: update risk matrix to use ref_id instead of rid
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiverX41 committed Dec 5, 2024
1 parent 60f5495 commit 3f351d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,9 +1049,9 @@ def build_scenario_clusters(risk_assessment: RiskAssessment):
"created_at"
):
if ri.current_level >= 0:
risk_matrix_current[ri.current_proba][ri.current_impact].add(ri.rid)
risk_matrix_current[ri.current_proba][ri.current_impact].add(ri.ref_id)
if ri.residual_level >= 0:
risk_matrix_residual[ri.residual_proba][ri.residual_impact].add(ri.rid)
risk_matrix_residual[ri.residual_proba][ri.residual_impact].add(ri.ref_id)

return {"current": risk_matrix_current, "residual": risk_matrix_residual}

Expand Down

0 comments on commit 3f351d8

Please sign in to comment.