Island: Fix formatting of database_initializer.py

This commit is contained in:
Mike Salvatore 2021-09-30 14:08:29 -04:00
parent fef6350871
commit c30d5721f2
1 changed files with 2 additions and 1 deletions

View File

@ -7,8 +7,8 @@ from pymongo import errors
from monkey_island.cc.database import mongo
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.services.database import Database
logger = logging.getLogger(__name__)
@ -20,6 +20,7 @@ ATTACK_MITIGATION_PATH = (
/ f"{AttackMitigations.COLLECTION_NAME}.json"
)
def reset_database():
Database.reset_db()
if Database.is_mitigations_missing():