Removed duplicate issues

This commit is contained in:
Itay Mizeretz 2017-11-27 15:51:56 +02:00
parent ce10ef00e4
commit f72b32bb67
1 changed files with 6 additions and 2 deletions

View File

@ -208,8 +208,12 @@ class ReportService:
@staticmethod
def get_exploits():
return [ReportService.process_exploit(exploit) for
exploit in mongo.db.telemetry.find({'telem_type': 'exploit', 'data.result': True})]
exploits = []
for exploit in mongo.db.telemetry.find({'telem_type': 'exploit', 'data.result': True}):
new_exploit = ReportService.process_exploit(exploit)
if new_exploit not in exploits:
exploits.append(new_exploit)
return exploits
@staticmethod
def get_monkey_subnets(monkey_guid):