Skip to content

Commit 13b95e9

Browse files
committed
Format parser.py.
1 parent 4db4b15 commit 13b95e9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

aiohttp_aiofiles_tutorial/parser.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ async def parse_html_page_metadata(html: str, url: str) -> str:
2323
.replace('"', "`")
2424
.replace("'", "`")
2525
)
26-
primary_tag = soup.head.select_one("meta[property='article:tag']").get(
27-
"content"
26+
primary_tag = (
27+
soup.head
28+
.select_one("meta[property='article:tag']")
29+
.get("content")
2830
)
2931
published_at = (
30-
soup.head.select_one("meta[property='article:published_time']")
32+
soup.head
33+
.select_one("meta[property='article:published_time']")
3134
.get("content")
3235
.split("T")[0]
3336
)

0 commit comments

Comments
 (0)