From a5481c15f81fd7edaf24838b0dd035dbc4fce578 Mon Sep 17 00:00:00 2001 From: Shreya Date: Tue, 4 May 2021 14:01:07 +0530 Subject: [PATCH] Remove unused `get_latest_attack_telem_time()` from `monkey_island/cc/services/attack/attack_report.py` --- .../cc/services/attack/attack_report.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/monkey/monkey_island/cc/services/attack/attack_report.py b/monkey/monkey_island/cc/services/attack/attack_report.py index 5845db502..02936b509 100644 --- a/monkey/monkey_island/cc/services/attack/attack_report.py +++ b/monkey/monkey_island/cc/services/attack/attack_report.py @@ -119,19 +119,6 @@ class AttackReportService: mongo.db.attack_report.replace_one({"name": REPORT_NAME}, report, upsert=True) return report - @staticmethod - def get_latest_attack_telem_time(): - """ - Gets timestamp of latest attack telem - :return: timestamp of latest attack telem - """ - return [ - x["timestamp"] - for x in mongo.db.telemetry.find({"telem_category": "attack"}) - .sort("timestamp", -1) - .limit(1) - ][0] - @staticmethod def get_latest_report(): """