Skip to content

Commit

Permalink
Merge pull request FeeiCN#1026 from BlBana/master
Browse files Browse the repository at this point in the history
修复了重复扫描任务数量的统计bug
  • Loading branch information
FeeiCN authored Apr 18, 2018
2 parents 7de405d + 93484ee commit fbd3ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobra/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ def report():
data_time = os.path.getctime(filename=data)
if t_start_un < data_time < t_end_un:
data_time = time.strftime(date_time_str, time.localtime(data_time))
data_lists.append(data)
with open(data, 'r') as f:
data_content = json.load(f)
data_results = data_content.get('result')
Expand All @@ -466,6 +465,7 @@ def report():
else:
target_directorys.append(target_directory)

data_lists.append(data)
total_files += data_results.get('file')
total_vul_number += len(data_results.get('vulnerabilities'))
time_range[data_time] += len(data_results.get('vulnerabilities'))
Expand Down

0 comments on commit fbd3ee8

Please sign in to comment.