From 1f8f21bbfc6e89e7c417efca65b5094b38661e5a Mon Sep 17 00:00:00 2001 From: tokitou-san Date: Fri, 22 Sep 2023 16:50:13 +0530 Subject: [PATCH] refactor: run pre-commit --- app/api/helpers/html_helper.py | 4 ++-- app/api/scrapers/base_manga.py | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/api/helpers/html_helper.py b/app/api/helpers/html_helper.py index 39db37e..f6a8c2f 100644 --- a/app/api/helpers/html_helper.py +++ b/app/api/helpers/html_helper.py @@ -5,5 +5,5 @@ class HTMLHelper: @staticmethod def get_parser(url: str) -> HTMLParser: - res = requests.get(url) - return HTMLParser(res.content) \ No newline at end of file + res = requests.get(url) + return HTMLParser(res.content) diff --git a/app/api/scrapers/base_manga.py b/app/api/scrapers/base_manga.py index 50bb2d3..8b20a4e 100644 --- a/app/api/scrapers/base_manga.py +++ b/app/api/scrapers/base_manga.py @@ -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 @@ -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