From bf3b2df253021b6d6dc6356b70cb48ae2b7a316e Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Tue, 7 May 2019 17:21:05 +0300 Subject: [PATCH] Added section markers to monkey model --- monkey/monkey_island/cc/models/monkey.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/monkey_island/cc/models/monkey.py b/monkey/monkey_island/cc/models/monkey.py index c0e4e88b2..68bdf6154 100644 --- a/monkey/monkey_island/cc/models/monkey.py +++ b/monkey/monkey_island/cc/models/monkey.py @@ -16,6 +16,7 @@ class Monkey(Document): * The logic section defines complex questions we can ask about a single document which are asked multiple times, somewhat like an API. """ + # SCHEMA guid = StringField(required=True) config = EmbeddedDocumentField('Config') creds = ListField(EmbeddedDocumentField('Creds')) @@ -33,6 +34,7 @@ class Monkey(Document): pba_results = ListField() ttl_ref = ReferenceField(MonkeyTtl) + # LOGIC @staticmethod def get_single_monkey_by_id(db_id): try: