Skip to content

Commit

Permalink
add function call to __get_sorted_sections to sort the parsed item se…
Browse files Browse the repository at this point in the history
…ctions by the datetime key
  • Loading branch information
benne238 committed Jun 29, 2021
1 parent b9d4945 commit de2dd76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webqueue2api/parser/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def __parse_sections(self) -> list:
if section["type"] == "initial_message":
body_sections[index] = self.__add_initial_message_headers(section)
break


body_sections = self.__get_sorted_sections(body_sections)

return body_sections

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

0 comments on commit de2dd76

Please sign in to comment.