diff --git a/src/webqueue2api/parser/item.py b/src/webqueue2api/parser/item.py index 3c7b166..5e89193 100644 --- a/src/webqueue2api/parser/item.py +++ b/src/webqueue2api/parser/item.py @@ -78,7 +78,7 @@ def __init__(self, queue: str, number: int, headers_only: bool = False) -> None: self.department = self.__get_most_recent_header_by_type("Department") self.building = self.__get_most_recent_header_by_type("Building") self.date_received = format_date_string(self.__get_most_recent_header_by_type("Date")) - if not headers_only: self.content = self.__parseSections() + if not headers_only: self.content = self.__parse_sections() self.json_data = self.__generate_json_data() def __generate_json_data(self) -> dict: @@ -216,7 +216,7 @@ def __parse_headers(self) -> list: return headers - def __parseSections(self) -> list: + def __parse_sections(self) -> list: # Convert list of lines to single string raw_item_as_string = "".join(self.__raw_item) @@ -261,7 +261,7 @@ def __add_initial_message_headers(self, initial_message: dict) -> dict: return initial_message - def __getSortedSections(self, sectionsList: list) -> list: + def __get_sorted_sections(self, sectionsList: list) -> list: """Sorts the sections chronologically by datetime Example: