Skip to content

Commit

Permalink
return initial message section with appropriate headers
Browse files Browse the repository at this point in the history
  • Loading branch information
benne238 committed Jun 29, 2021
1 parent b701cda commit 3951832
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/webqueue2api/parser/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ def __parseSections(self) -> list:
# Parse body
body_sections = parse_item(raw_item_as_string)

# Add initial message headers to intial message section
for index, section in enumerate(body_sections):
if section["type"] == "initial_message":
body_sections[index] = self.__add_initial_message_headers(section)
break

return body_sections

def __add_initial_message_headers(self, initial_message: dict) -> dict:
Expand Down

0 comments on commit 3951832

Please sign in to comment.