forked from p34709852/monkey
Deleted commented out code
This commit is contained in:
parent
afbc13a06b
commit
ddd89c2a14
|
@ -109,9 +109,3 @@ class AttackReportService:
|
|||
delete_result = mongo.db.attack_report.delete_many({})
|
||||
if mongo.db.attack_report.count_documents({}) != 0:
|
||||
raise RuntimeError("Attack Report cache not cleared. DeleteResult: " + delete_result.raw_result)
|
||||
# if AttackReportService.is_report_generated():
|
||||
# mongo.db.attack_report.delete_many({})
|
||||
# latest_report = mongo.db.attack_report.find_one({'name': REPORT_NAME})
|
||||
# delete_result = mongo.db.report.delete_one({"_id": latest_report['_id']})
|
||||
# if delete_result.deleted_count != 1:
|
||||
# raise RuntimeError("Error while deleting report. Deleted count: " + str(delete_result.deleted_count))
|
||||
|
|
|
@ -782,12 +782,6 @@ class ReportService:
|
|||
delete_result = mongo.db.report.delete_many({})
|
||||
if mongo.db.report.count_documents({}) != 0:
|
||||
raise RuntimeError("Report cache not cleared. DeleteResult: " + delete_result.raw_result)
|
||||
# latest_report_doc = mongo.db.report.find_one({}, {'meta.latest_monkey_modifytime': 1})
|
||||
#
|
||||
# if latest_report_doc:
|
||||
# delete_result = mongo.db.report.delete_one({"_id": latest_report_doc['_id']})
|
||||
# if delete_result.deleted_count != 1:
|
||||
# raise RuntimeError("Error while deleting report:" + str(delete_result))
|
||||
|
||||
@staticmethod
|
||||
def decode_dot_char_before_mongo_insert(report_dict):
|
||||
|
|
Loading…
Reference in New Issue