Skip to content

Commit

Permalink
Header date format implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Daniel Bennett committed Dec 3, 2020
1 parent 781cfd4 commit a6d820f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,24 @@ def __parseHeaders(self) -> list:
message = email.message_from_string(headerString)

headers = []
dateHeaders=[
"QStatus-Updated-Time",
"Status-Updated-Time",
"Edited-Time",
"QTime-Updated-Time",
"Merged-Time",
"Time-Updated-Time",
"Replied-Time",
"Assigned-To-Updated-Time",
"QAssigned-To-Updated-Time",
"Date",
"Sent"
]



for key in message.keys():
headers.append({"type": key, "content": message[key]})
headers.append({"type": key, "content": self.__getFormattedDate(message[key]) if key in dateHeaders else message[key]})

return headers

Expand Down

0 comments on commit a6d820f

Please sign in to comment.