From 520b212c69f40fdcb717b697d0444c47736c66b2 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 28 Sep 2022 17:17:28 +0000 Subject: [PATCH] Island: Remove ReportService.get_all_displayed_nodes --- .../monkey_island/cc/services/reporting/report.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py index 256f681aa..23460634e 100644 --- a/monkey/monkey_island/cc/services/reporting/report.py +++ b/monkey/monkey_island/cc/services/reporting/report.py @@ -164,19 +164,6 @@ class ReportService: return chain(filter(is_island, t1), *filterfalse(is_island, t2)) - @staticmethod - def get_all_displayed_nodes(): - nodes_without_monkeys = [ - NodeService.get_displayed_node_by_id(node["_id"], True) - for node in mongo.db.node.find({}, {"_id": 1}) - ] - nodes_with_monkeys = [ - NodeService.get_displayed_node_by_id(monkey["_id"], True) - for monkey in mongo.db.monkey.find({}, {"_id": 1}) - ] - nodes = nodes_without_monkeys + nodes_with_monkeys - return nodes - @staticmethod def process_exploit(exploit) -> ExploiterReportInfo: exploiter_type = exploit["data"]["exploiter"]