Skip to content

Commit

Permalink
Merge pull request #1363 from Bidaya0/fix/new-sca-lib-p2
Browse files Browse the repository at this point in the history
fix: add new level
  • Loading branch information
Bidaya0 authored Mar 27, 2023
2 parents 92a276b + 38cb741 commit a8cf51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dongtai_web/dongtai_sca/scan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def get_asset_level(res: dict) -> int:
'low': 3
}
for k, v in level_map.items():
if res[k] > 0:
if k in res and res[k] > 0:
return v
return 4

Expand Down

0 comments on commit a8cf51b

Please sign in to comment.