Skip to content

Commit

Permalink
Updated documentation for replyToParsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Daniel Bennett committed Oct 22, 2020
1 parent 90b0da8 commit ce7c4d5
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,26 @@ def __editParsing(self, content: list, lineNum: int) -> dict:
def __replyToParsing(self, content: list, lineNum: int) -> dict:
"""Returns a dictionary with reply to user information
Example:
*** Replied by: campb303 at: 06/23/20 13:28:18 ***\n
\n
This be a reply my son\n
\n
Justin\n
ECN\n
\n
Args:
content (list): content of a reply to user
lineNum (int): line number of a reply to user in an item
Returns:
dictionary: "type": "replyToUser", by, datetime and content
dict: a dictionary with these keys,
"type": "status",
"by": initiator of the reply to user,
"datetime": datetime of the reply to user,
"content": content of the reply to user
"""

replyInfo = {}

replyInfo["type"] = "reply_to_user"
Expand Down

0 comments on commit ce7c4d5

Please sign in to comment.