Remove unused `did_exploit_type_succeed()` from `monkey_island/cc/services/reporting/report.py`

This commit is contained in:
Shreya 2021-05-04 13:05:41 +05:30
parent df7759e332
commit 9bcaa2ef8e
1 changed files with 0 additions and 9 deletions

View File

@ -763,12 +763,3 @@ class ReportService:
if ReportService.is_latest_report_exists():
return ReportService.decode_dot_char_before_mongo_insert(mongo.db.report.find_one())
return safe_generate_regular_report()
@staticmethod
def did_exploit_type_succeed(exploit_type):
return (
mongo.db.edge.count(
{"exploits": {"$elemMatch": {"exploiter": exploit_type, "result": True}}}, limit=1
)
> 0
)