Remove unused `get_latest_attack_telem_time()` from `monkey_island/cc/services/attack/attack_report.py`
This commit is contained in:
parent
e4c45153ea
commit
a5481c15f8
|
@ -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():
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue