forked from p34709852/monkey
Island: Fix formatting of database_initializer.py
This commit is contained in:
parent
fef6350871
commit
c30d5721f2
|
@ -7,8 +7,8 @@ from pymongo import errors
|
||||||
|
|
||||||
from monkey_island.cc.database import mongo
|
from monkey_island.cc.database import mongo
|
||||||
from monkey_island.cc.models.attack.attack_mitigations import AttackMitigations
|
from monkey_island.cc.models.attack.attack_mitigations import AttackMitigations
|
||||||
from monkey_island.cc.services.database import Database
|
|
||||||
from monkey_island.cc.server_utils.consts import MONKEY_ISLAND_ABS_PATH
|
from monkey_island.cc.server_utils.consts import MONKEY_ISLAND_ABS_PATH
|
||||||
|
from monkey_island.cc.services.database import Database
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ ATTACK_MITIGATION_PATH = (
|
||||||
/ f"{AttackMitigations.COLLECTION_NAME}.json"
|
/ f"{AttackMitigations.COLLECTION_NAME}.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def reset_database():
|
def reset_database():
|
||||||
Database.reset_db()
|
Database.reset_db()
|
||||||
if Database.is_mitigations_missing():
|
if Database.is_mitigations_missing():
|
||||||
|
|
Loading…
Reference in New Issue