Skip to content

Commit

Permalink
Fix error causing IR:H to fail
Browse files Browse the repository at this point in the history
Number was not properly created as a Decimal (D) object.
  • Loading branch information
0secure authored Sep 6, 2018
1 parent 9e45c13 commit 5aab3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvsslib/cvss3/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def calculate_modified_impact_sub_score(scope: ModifiedScope,
(1 - modified_conf * conf_req) *
(1 - modified_integ * integ_req) *
(1 - modified_avail * avail_req),
0.915
D("0.915")
)

if scope == ModifiedScope.UNCHANGED.value:
Expand Down Expand Up @@ -144,4 +144,4 @@ def calculate(run_calculation, get):

environment_score = run_calculation(calculate_environmental_score, override=override)

return float(base_score), float(temporal_score), float(environment_score)
return float(base_score), float(temporal_score), float(environment_score)

0 comments on commit 5aab3d7

Please sign in to comment.