Skip to content

Commit

Permalink
Merge pull request #14 from ukwhatn/develop
Browse files Browse the repository at this point in the history
Release v3.0.6
  • Loading branch information
ukwhatn authored Apr 29, 2024
2 parents fa3660c + 19d43e3 commit 0e69917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "wikidot"
version = "3.0.5"
version = "3.0.6"
authors = [{ name = "ukwhatn", email = "[email protected]" }]
description = "Wikidot Utility Library"
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/wikidot/module/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __iter__(self) -> Iterator["Page"]:
def _parse(site: "Site", html_body: BeautifulSoup):
pages = []

for page_element in html_body.select("span.page"):
for page_element in html_body.select("div.page"):
page_params = {}

# レーティング方式を判定
Expand Down Expand Up @@ -178,7 +178,7 @@ def search_pages(site: "Site", query: SearchPagesQuery = SearchPagesQuery()):
query_dict = query.as_dict()
query_dict["moduleName"] = "list/ListPagesModule"
query_dict["module_body"] = (
'[[span class="page"]]'
'[[div class="page"]]'
+ "".join(
[
f'[[span class="set {key}"]]'
Expand All @@ -188,7 +188,7 @@ def search_pages(site: "Site", query: SearchPagesQuery = SearchPagesQuery()):
for key in DEFAULT_MODULE_BODY
]
)
+ "[[/span]]"
+ "[[/div]]"
)

try:
Expand Down

0 comments on commit 0e69917

Please sign in to comment.