From d7ec2db47725633ad1cf36cc3605a28c93048937 Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 8 Jul 2021 15:46:27 +0530 Subject: [PATCH] island: Rename `get_exploitation_stats()` to `get_exploitation_details()` --- monkey/monkey_island/cc/resources/ransomware_report.py | 4 +++- monkey/monkey_island/cc/services/ransomware_report.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/ransomware_report.py b/monkey/monkey_island/cc/resources/ransomware_report.py index f0232e72e..96abfe252 100644 --- a/monkey/monkey_island/cc/resources/ransomware_report.py +++ b/monkey/monkey_island/cc/resources/ransomware_report.py @@ -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()} + ) diff --git a/monkey/monkey_island/cc/services/ransomware_report.py b/monkey/monkey_island/cc/services/ransomware_report.py index 93def94d7..fd1ec5b69 100644 --- a/monkey/monkey_island/cc/services/ransomware_report.py +++ b/monkey/monkey_island/cc/services/ransomware_report.py @@ -6,7 +6,7 @@ class RansomwareReportService: pass @staticmethod - def get_exploitation_stats(): + def get_exploitation_details(): scanned = ReportService.get_scanned() exploited = ReportService.get_exploited()