Island: Remove ReportService.get_all_displayed_nodes

This commit is contained in:
Kekoa Kaaikala 2022-09-28 17:17:28 +00:00
parent 8acf2d9e91
commit 520b212c69
1 changed files with 0 additions and 13 deletions

View File

@ -164,19 +164,6 @@ class ReportService:
return chain(filter(is_island, t1), *filterfalse(is_island, t2)) 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 @staticmethod
def process_exploit(exploit) -> ExploiterReportInfo: def process_exploit(exploit) -> ExploiterReportInfo:
exploiter_type = exploit["data"]["exploiter"] exploiter_type = exploit["data"]["exploiter"]