Skip to content

Commit

Permalink
Fixes after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonarok committed Sep 7, 2021
1 parent 143b3d1 commit 4874a32
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions circuit_maintenance_parser/parsers/hgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from dateutil import parser

from circuit_maintenance_parser.errors import ParserError
from circuit_maintenance_parser.parser import EmailSubjectParser, Html, Impact, CircuitImpact, Status

# pylint: disable=too-many-branches
Expand Down Expand Up @@ -34,16 +33,15 @@ def parse_subject(self, subject):


class HtmlParserHGC1(Html):
"""HGC HTML parser."""
"""HGC HTML 1 parser."""

def parse_html(self, soup, data_base):
def parse_html(self, soup):
"""Execute parsing."""
data = data_base.copy()
data = {}
self.parse_table(soup.find_all("table"), data)
data["status"] = Status.CONFIRMED
return [data]


def parse_table(self, tables, data):
"""Parse HTML tables.
Expand Down Expand Up @@ -84,11 +82,11 @@ def parse_table(self, tables, data):


class HtmlParserHGC2(Html):
"""HGC HTML parser."""
"""HGC HTML 2 parser."""

def parse_html(self, soup, data_base):
def parse_html(self, soup):
"""Execute parsing."""
data = data_base.copy()
data = {}
self.parse_body(soup.find_all("span"), data)
data["status"] = Status.CONFIRMED
return [data]
Expand Down

0 comments on commit 4874a32

Please sign in to comment.