Island: Fix mongo query in report generation for exploits

This commit is contained in:
Shreya Malviya 2022-03-10 16:24:37 +05:30 committed by ilija-lazoroski
parent 453dc21074
commit 11f48a95be
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class ReportService:
@staticmethod
def get_exploits() -> List[dict]:
query = [
{"$match": {"telem_category": "exploit", "data.result": True}},
{"$match": {"telem_category": "exploit", "data.exploitation_result": True}},
{
"$group": {
"_id": {"ip_address": "$data.machine.ip_addr"},