Remove unused `get_latest_attack_telem_time()` from `monkey_island/cc/services/attack/attack_report.py`

This commit is contained in:
Shreya 2021-05-04 14:01:07 +05:30
parent e4c45153ea
commit a5481c15f8
1 changed files with 0 additions and 13 deletions

View File

@ -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():
"""