Skip to content

Commit

Permalink
fix: add new level
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidaya0 committed Mar 27, 2023
1 parent 7a9311b commit 38cb741
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 38cb741

Please sign in to comment.