Skip to content

Commit

Permalink
Merge pull request #1511 from Bidaya0/fix/sca_scan_data_transfrom
Browse files Browse the repository at this point in the history
fix: sca scan_data transform.
  • Loading branch information
Bidaya0 authored Jun 12, 2023
2 parents ea0b86a + 22ac447 commit 7e0c046
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions dongtai_web/dongtai_sca/scan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,12 @@ def get_package_v3(aql: str = "",
while (res.is_err() and res.value == "Rate Limit Exceeded"
and retry_count < SCA_MAX_RETRY_COUNT):
retry_count += 1
res = request_get_res_data_with_exception(
data_transfrom_package_vul_v3,
"GET",
url,
data=payload,
headers=headers,
timeout=SCA_TIMEOUT)
res = request_get_res_data_with_exception(data_transfrom_package_v3,
"GET",
url,
data=payload,
headers=headers,
timeout=SCA_TIMEOUT)
if isinstance(res, Err):
return []
data = res.value
Expand Down

0 comments on commit 7e0c046

Please sign in to comment.