forked from p15670423/monkey
island: Rename `get_exploitation_stats()` to `get_exploitation_details()`
This commit is contained in:
parent
79d042b471
commit
d7ec2db477
|
@ -8,4 +8,6 @@ from monkey_island.cc.services.ransomware_report import RansomwareReportService
|
||||||
class RansomwareReport(flask_restful.Resource):
|
class RansomwareReport(flask_restful.Resource):
|
||||||
@jwt_required
|
@jwt_required
|
||||||
def get(self):
|
def get(self):
|
||||||
return jsonify({"report": None, "stats": RansomwareReportService.get_exploitation_stats()})
|
return jsonify(
|
||||||
|
{"report": None, "stats": RansomwareReportService.get_exploitation_details()}
|
||||||
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ class RansomwareReportService:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_exploitation_stats():
|
def get_exploitation_details():
|
||||||
scanned = ReportService.get_scanned()
|
scanned = ReportService.get_scanned()
|
||||||
exploited = ReportService.get_exploited()
|
exploited = ReportService.get_exploited()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue