pengdaqian commited on
Commit
69a8672
1 Parent(s): 301572e
Files changed (1) hide show
  1. scan_main.py +1 -1
scan_main.py CHANGED
@@ -16,7 +16,7 @@ def write_scan_model_result(req: model.ModelScanRequest):
16
  ret |= detail
17
  ret |= clamd_detail
18
  if 'Hash' in req.tasks:
19
- ret.hashes = generate_model_hashes(req.fileUrl)
20
 
21
  try:
22
  requests.post(req.callbackUrl, json=ret)
 
16
  ret |= detail
17
  ret |= clamd_detail
18
  if 'Hash' in req.tasks:
19
+ ret["hashes"] = generate_model_hashes(req.fileUrl)
20
 
21
  try:
22
  requests.post(req.callbackUrl, json=ret)