We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4920e1f commit 1a9df9bCopy full SHA for 1a9df9b
vulnerabilities/risk.py
@@ -104,8 +104,8 @@ def compute_package_risk(package):
104
and determining the associated risk.
105
"""
106
result = []
107
- for vulnerability in package.affectedbypackagerelatedvulnerability_set.all():
108
- if risk := vulnerability.vulnerability.risk_score:
+ for relation in package.affectedbypackagerelatedvulnerability_set.all():
+ if risk := relation.vulnerability.risk_score:
109
result.append(float(risk))
110
111
if not result:
0 commit comments