Skip to content

Commit

Permalink
refactor: run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Sep 22, 2023
1 parent 395bb8e commit 1f8f21b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/api/helpers/html_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
class HTMLHelper:
@staticmethod
def get_parser(url: str) -> HTMLParser:
res = requests.get(url)
return HTMLParser(res.content)
res = requests.get(url)
return HTMLParser(res.content)
8 changes: 2 additions & 6 deletions app/api/scrapers/base_manga.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ def get_manga_type(self):
@property
@return_on_error("")
def get_status(self):
node = self.parser.css_first(
".anisc-detail .anisc-info .item:nth-child(2) .name"
)
node = self.parser.css_first(".anisc-detail .anisc-info .item:nth-child(2) .name")
return node.text(strip=True).lower()

@property
Expand Down Expand Up @@ -87,9 +85,7 @@ def get_published(self):
@property
@return_on_error(0)
def get_score(self):
node = self.parser.css_first(
".anisc-detail .anisc-info .item:nth-child(6) .name"
)
node = self.parser.css_first(".anisc-detail .anisc-info .item:nth-child(6) .name")
return node.text(strip=True)

@property
Expand Down

0 comments on commit 1f8f21b

Please sign in to comment.