pengdaqian commited on
Commit
084eefe
1 Parent(s): d7ab57a
Files changed (1) hide show
  1. scan.py +2 -2
scan.py CHANGED
@@ -63,10 +63,10 @@ def clamd_file(file_path: str, clamd):
63
  'clamscanExitCode': 0,
64
  'clamscanOutput': "No virus found",
65
  }
66
- elif file_path in ret and len(file_path) > 0:
67
  return {
68
  'clamscanExitCode': 1,
69
- 'clamscanOutput': ' '.join(ret[file_path]),
70
  }
71
 
72
 
 
63
  'clamscanExitCode': 0,
64
  'clamscanOutput': "No virus found",
65
  }
66
+ elif tmp_path in ret and len(tmp_path) > 0:
67
  return {
68
  'clamscanExitCode': 1,
69
+ 'clamscanOutput': ' '.join(ret[tmp_path]),
70
  }
71
 
72