island: Rename `get_exploitation_stats()` to `get_exploitation_details()`

This commit is contained in:
Shreya 2021-07-08 15:46:27 +05:30
parent 79d042b471
commit d7ec2db477
2 changed files with 4 additions and 2 deletions

View File

@ -8,4 +8,6 @@ from monkey_island.cc.services.ransomware_report import RansomwareReportService
class RansomwareReport(flask_restful.Resource):
@jwt_required
def get(self):
return jsonify({"report": None, "stats": RansomwareReportService.get_exploitation_stats()})
return jsonify(
{"report": None, "stats": RansomwareReportService.get_exploitation_details()}
)

View File

@ -6,7 +6,7 @@ class RansomwareReportService:
pass
@staticmethod
def get_exploitation_stats():
def get_exploitation_details():
scanned = ReportService.get_scanned()
exploited = ReportService.get_exploited()