From b9e7800b3b3c11fa06c5d85c60bbc2aea777d1b3 Mon Sep 17 00:00:00 2001 From: Jacob Daniel Bennett Date: Wed, 21 Oct 2020 23:31:28 -0400 Subject: [PATCH] Updated documentation for initialMessageParsing --- api/ECNQueue.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/api/ECNQueue.py b/api/ECNQueue.py index 092a102..49454ba 100644 --- a/api/ECNQueue.py +++ b/api/ECNQueue.py @@ -470,16 +470,24 @@ def __assignmentParsing(self, contentStart) -> list: def __initialMessageParsing(self, content: list) -> dict: """Returns a dictionary with initial message information + Example: + \n + Testtest\n + \n + + Args: + content (list): content of the initial message + Returns: - dictionary: + dict: "type": "initial_message", - "datetime": utcdate, + "datetime": datetime the initial message was sent, "from_name": from_name, "from_email": user_email, "to": [{email, name}], "cc": [{email, name}], - "subject": initial_message_subject - "content": ["message_content"] + "subject": initial message subject + "content": content of the initial message """ initialMessageDictionary = {}